UNPKG

lodash-template-js-parser

Version:
25 lines 843 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const locations_1 = require("./locations"); /** * The token */ class Token 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; this.value = this.getText(); } } exports.Token = Token; //# sourceMappingURL=token.js.map