C# Class Antlr4.Runtime.Atn.ContextSensitivityInfo

This class represents profiling event information for a context sensitivity.
This class represents profiling event information for a context sensitivity. Context sensitivities are decisions where a particular input resulted in an SLL conflict, but LL prediction produced a single unique alternative.

In some cases, the unique alternative identified by LL prediction is not equal to the minimum represented alternative in the conflicting SLL configuration set. Grammars and inputs which result in this scenario are unable to use PredictionMode.SLL , which in turn means they cannot use the two-stage parsing strategy to improve parsing performance for that input.

Inheritance: DecisionEventInfo
Datei anzeigen Open project: antlr/antlr4

Public Methods

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

Constructs a new instance of the ContextSensitivityInfo class with the specified detailed context sensitivity information.

Method Details

ContextSensitivityInfo() public method

Constructs a new instance of the ContextSensitivityInfo class with the specified detailed context sensitivity information.
public ContextSensitivityInfo ( int decision, SimulatorState state, ITokenStream input, int startIndex, int stopIndex ) : Antlr4.Runtime
decision int The decision number
state SimulatorState /// The final simulator state containing the unique /// alternative identified by full-context prediction ///
input ITokenStream The input token stream
startIndex int The start index for the current prediction
stopIndex int /// The index at which the context sensitivity was /// identified during full-context prediction ///
return Antlr4.Runtime