DefinitelyTyped/types/antlr4/BufferedTokenStream.d.ts
Marlon Chatman 877ced9c4b Add Antlr4 Definitions/Types (#27120)
* 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
2018-07-13 12:46:40 -07:00

54 lines
976 B
TypeScript

import { Token } from './Token';
import { Interval } from './IntervalSet';
export class BufferedTokenStream {
tokenSource: any;
tokens: Token[];
index: number;
fetchEOF: boolean;
mark(): number;
release(marker: number): number;
reset(): void;
seek(index: number): void;
get(index: number): Token;
consume(): void;
sync(i: number): boolean;
fetch(n: number): number;
getTokens(start: number, stop: number, types: any): Token[];
LA(i: number): any;
LB(k: number): Token;
LT(k: number): Token;
adjustSeekIndex(i: number): number;
lazyInit(): void;
setup(): void;
setTokenSource(tokenSource: any): void;
nextTokenOnChannel(i: number, channel: any): number;
previousTokenOnChannel(i: number, channel: any): number;
getHiddenTokensToRight(tokenIndex: number, channel: any): Token[];
getSourceName(): any;
getText(interval: Interval): any;
fill(): void;
}