ErrorInfo class
This class represents profiling event information for a syntax error identified during prediction. Syntax errors occur when the prediction algorithm is unable to identify an alternative which would lead to a successful parse.
@see Parser#notifyErrorListeners(Token, String, RecognitionException) @see ANTLRErrorListener#syntaxError
@since 4.3
- Inheritance
-
- Object
- DecisionEventInfo
- ErrorInfo
Constructors
- ErrorInfo(int decision, ATNConfigSet? configs, TokenStream input, int startIndex, int stopIndex, bool fullCtx)
- Constructs a new instance of the ErrorInfo class with the specified detailed syntax error information.
Properties
- configs → ATNConfigSet?
-
The configuration set containing additional information relevant to the
prediction state when the current event occurred, or null if no
additional information is relevant or available.
finalinherited
- decision → int
-
The invoked decision number which this event is related to.
finalinherited
- fullCtx → bool
-
true
if the current event occurred during LL prediction; otherwise,false
if the input occurred during SLL prediction.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- input → TokenStream
-
The input token stream which is being parsed.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startIndex → int
-
The token index in the input stream at which the current prediction was
originally invoked.
finalinherited
- stopIndex → int
-
The token index in the input stream at which the current event occurred.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited