diff --git a/runtime/JavaScript/src/antlr4/BufferedTokenStream.d.ts b/runtime/JavaScript/src/antlr4/BufferedTokenStream.d.ts index cf53eeee5d..d7f0ec6d0a 100644 --- a/runtime/JavaScript/src/antlr4/BufferedTokenStream.d.ts +++ b/runtime/JavaScript/src/antlr4/BufferedTokenStream.d.ts @@ -1,8 +1,27 @@ import { TokenStream } from './TokenStream'; -import { Lexer } from "./Lexer"; +import { TokenSource } from './TokenSource'; +import { Token } from './Token'; export declare class BufferedTokenStream extends TokenStream { - tokenSource: Lexer; + tokenSource: TokenSource; + tokens: Token[]; + index: number; + fetchedEof: boolean; + constructor(source: TokenSource); + setTokenSource(tokenSource: TokenSource): void; + mark(): number; + release(marker: number): void; + reset(): void; + seek(index: number): void; + consume(): void; + sync(i: number): boolean; + fetch(n: number): number; + LB(k: number): Token; + nextTokenOnChannel(i: number, channel: number): number; + previousTokenOnChannel(i: number, channel: number): number; + + protected lazyInit(): void; + protected adjustSeekIndex(i: number): number; } diff --git a/runtime/JavaScript/src/antlr4/TokenSource.d.ts b/runtime/JavaScript/src/antlr4/TokenSource.d.ts index 909aa68377..3186512adc 100644 --- a/runtime/JavaScript/src/antlr4/TokenSource.d.ts +++ b/runtime/JavaScript/src/antlr4/TokenSource.d.ts @@ -1,3 +1,7 @@ -export declare class TokenSource { +import {Token} from "./Token"; +export declare class TokenSource { + _factory: any; + nextToken(): Token; + getSourceName(): string; }