Class LexerActionExecutionContext
Describes one accepted lexer inline action execution request.
public sealed record LexerActionExecutionContext : IEquatable<LexerActionExecutionContext>
- Inheritance
-
LexerActionExecutionContext
- Implements
- Inherited Members
- Extension Methods
Constructors
LexerActionExecutionContext(Rule, string, int, int, string, string, string, string, int, int)
Describes one accepted lexer inline action execution request.
public LexerActionExecutionContext(Rule Rule, string ActionCode, int AlternativeIndex, int ElementIndex, string Text, string TokenType, string Channel, string Mode, int Line, int Column)
Parameters
RuleRuleLexer rule that owns the action.
ActionCodestringRaw action code without ANTLR braces.
AlternativeIndexintBest-effort deterministic alternative index, or
-1when not represented.ElementIndexintBest-effort deterministic element index, or
-1when not represented.TextstringAccepted token or chunk text available to the accepted lexer action context.
TokenTypestringToken type available to the accepted lexer action context before lexer commands are applied.
ChannelstringToken channel available to the accepted lexer action context before lexer commands are applied.
ModestringLexer mode available to the accepted lexer action context.
LineintOne-based source line at the start of the accepted token or chunk.
ColumnintOne-based source column at the start of the accepted token or chunk.
Properties
ActionCode
Raw action code without ANTLR braces.
public string ActionCode { get; init; }
Property Value
AlternativeIndex
Best-effort deterministic alternative index, or -1 when not represented.
public int AlternativeIndex { get; init; }
Property Value
Channel
Token channel available to the accepted lexer action context before lexer commands are applied.
public string Channel { get; init; }
Property Value
Column
One-based source column at the start of the accepted token or chunk.
public int Column { get; init; }
Property Value
ElementIndex
Best-effort deterministic element index, or -1 when not represented.
public int ElementIndex { get; init; }
Property Value
Line
One-based source line at the start of the accepted token or chunk.
public int Line { get; init; }
Property Value
Mode
Lexer mode available to the accepted lexer action context.
public string Mode { get; init; }
Property Value
Rule
Lexer rule that owns the action.
public Rule Rule { get; init; }
Property Value
Text
Accepted token or chunk text available to the accepted lexer action context.
public string Text { get; init; }
Property Value
TokenType
Token type available to the accepted lexer action context before lexer commands are applied.
public string TokenType { get; init; }