@yusufkandemir/eslint-plugin-lodash-template
Version:
ESLint plugin for John Resig-style micro template, Lodash's template, Underscore's template and EJS.
25 lines (22 loc) • 710 B
JavaScript
const HasLocation = require("./locations").HasLocation;
/**
* The node
*/
class Node extends HasLocation {
/**
* constructor.
* @param {string} type The token type.
* @param {number} startIndex The start index of range.
* @param {number} endIndex The end index of range.
* @param {SourceCodeStore} sourceCodeStore The sourceCodeStore.
* @param {object} optProps The optional property.
* @returns {void}
*/
constructor(type, startIndex, endIndex, sourceCodeStore, optProps) {
super(startIndex, endIndex, sourceCodeStore);
this.type = type;
this.parent = optProps && optProps.parent;
}
}
module.exports = Node;
;