UNPKG

374 BTypeScriptView Raw
1import { TokenKind } from '../parser';
2export declare abstract class Token {
3 kind: TokenKind;
4 input: string;
5 begin: number;
6 end: number;
7 file?: string | undefined;
8 constructor(kind: TokenKind, input: string, begin: number, end: number, file?: string | undefined);
9 getText(): string;
10 getPosition(): number[];
11 size(): number;
12}