1 | /*!
|
2 | * Copyright 2016 The ANTLR Project. All rights reserved.
|
3 | * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
4 | */
|
5 | import { ATNConfigSet } from "./atn/ATNConfigSet";
|
6 | import { Parser } from "./Parser";
|
7 | import { ParserRuleContext } from "./ParserRuleContext";
|
8 | import { RecognitionException } from "./RecognitionException";
|
9 | import { Recognizer } from "./Recognizer";
|
10 | import { Token } from "./Token";
|
11 | import { TokenStream } from "./TokenStream";
|
12 | /** Indicates that the parser could not decide which of two or more paths
|
13 | * to take based upon the remaining input. It tracks the starting token
|
14 | * of the offending input and also knows where the parser was
|
15 | * in the various paths when the error. Reported by reportNoViableAlternative()
|
16 | */
|
17 | export declare class NoViableAltException extends RecognitionException {
|
18 | /** Which configurations did we try at input.index that couldn't match input.LT(1)? */
|
19 | private _deadEndConfigs?;
|
20 | /** The token object at the start index; the input stream might
|
21 | * not be buffering tokens so get a reference to it. (At the
|
22 | * time the error occurred, of course the stream needs to keep a
|
23 | * buffer all of the tokens but later we might not have access to those.)
|
24 | */
|
25 | private _startToken;
|
26 | constructor(/*@NotNull*/ recognizer: Parser);
|
27 | constructor(recognizer: Recognizer<Token, any>, input: TokenStream, startToken: Token, offendingToken: Token, deadEndConfigs: ATNConfigSet | undefined, ctx: ParserRuleContext);
|
28 | get startToken(): Token;
|
29 | get deadEndConfigs(): ATNConfigSet | undefined;
|
30 | }
|