C# 클래스 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.

상속: DecisionEventInfo
파일 보기 프로젝트 열기: antlr/antlr4

공개 메소드들

메소드 설명
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.

메소드 상세

ContextSensitivityInfo() 공개 메소드

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 ///
리턴 Antlr4.Runtime