C# Class Antlr4.Runtime.Atn.ErrorInfo

This class represents profiling event information for a syntax error identified during prediction.
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.
Inheritance: DecisionEventInfo
Show file Open project: antlr/antlr4

Public Methods

Method Description
ErrorInfo ( int decision, SimulatorState state, ITokenStream input, int startIndex, int stopIndex ) : Antlr4.Runtime

Constructs a new instance of the ErrorInfo class with the specified detailed syntax error information.

Method Details

ErrorInfo() public method

Constructs a new instance of the ErrorInfo class with the specified detailed syntax error information.
public ErrorInfo ( int decision, SimulatorState state, ITokenStream input, int startIndex, int stopIndex ) : Antlr4.Runtime
decision int The decision number
state SimulatorState /// The final simulator state reached during prediction /// prior to reaching the /// /// state ///
input ITokenStream The input token stream
startIndex int The start index for the current prediction
stopIndex int The index at which the syntax error was identified
return Antlr4.Runtime