Class LexerPredicateEvaluationContext
Describes one lexer predicate evaluation request.
public sealed record LexerPredicateEvaluationContext : IEquatable<LexerPredicateEvaluationContext>
- Inheritance
-
LexerPredicateEvaluationContext
- Implements
- Inherited Members
- Extension Methods
Constructors
LexerPredicateEvaluationContext(Rule, string, int, int)
Describes one lexer predicate evaluation request.
public LexerPredicateEvaluationContext(Rule Rule, string PredicateCode, int AlternativeIndex, int ElementIndex)
Parameters
RuleRuleLexer rule that owns the predicate.
PredicateCodestringRaw predicate code without ANTLR braces and trailing question mark.
AlternativeIndexintBest-effort deterministic alternative index, or
-1when not represented.ElementIndexintBest-effort deterministic element index, or
-1when not represented.
Properties
AlternativeIndex
Best-effort deterministic alternative index, or -1 when not represented.
public int AlternativeIndex { get; init; }
Property Value
ElementIndex
Best-effort deterministic element index, or -1 when not represented.
public int ElementIndex { get; init; }
Property Value
PredicateCode
Raw predicate code without ANTLR braces and trailing question mark.
public string PredicateCode { get; init; }
Property Value
Rule
Lexer rule that owns the predicate.
public Rule Rule { get; init; }