lodash-template-js-parser
Version:
A JavaScript parser for lodash.template
23 lines (22 loc) • 737 B
TypeScript
import { SourceCodeStore } from "../service/SourceCodeStore";
import { HasLocation } from "./locations";
/**
* The token
*/
export declare class Token extends HasLocation {
type: string;
parent: any | undefined;
value: string;
/**
* 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: string, startIndex: number, endIndex: number, sourceCodeStore: SourceCodeStore, optProps: {
parent?: any;
});
}