mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add antlr4 definitions/types * Update the tsconfig.json for the antlr4 types * Update the tsconfig.json for the antlr4 types. Use files instead of includes. * Remove antlr4-test.ts to antlr4-tests.ts, for the antlr4 types * Remove the c-parser.ts, for the antlr4 types. As this is not allowed in the antlr4-test.ts * Fix antlr4 types test lint failure * Update the linting and the tslint.json * Update the tslint.json, for antlr4 types
32 lines
675 B
TypeScript
32 lines
675 B
TypeScript
export class Token {
|
|
readonly text: string;
|
|
source: any;
|
|
type: any;
|
|
channel: any;
|
|
start: number;
|
|
stop: number;
|
|
tokenIndex: number;
|
|
line: number;
|
|
column: number;
|
|
|
|
getTokenSource(): any;
|
|
|
|
getInputStream(): any;
|
|
|
|
static readonly INVALID_TYPE: number;
|
|
static readonly EPSILON: number;
|
|
static readonly MIN_USER_TOKEN_TYPE: number;
|
|
static readonly EOF: number;
|
|
static readonly HIDDEN_CHANNEL: number;
|
|
}
|
|
|
|
export class CommonToken extends Token {
|
|
constructor(source: any, type: any, channel: any, start: number, stop: number);
|
|
|
|
clone(): Token;
|
|
|
|
toString(): string;
|
|
|
|
static readonly EMPTY_SOURCE: any;
|
|
}
|