UNPKG

lodash-template-js-parser

Version:
24 lines 801 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const locations_1 = require("./locations"); /** * The node */ class Node extends locations_1.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; } } exports.Node = Node; //# sourceMappingURL=node.js.map