Class ParserActionExecutionContext
Immutable action execution data passed to IParserActionExecutor.
public sealed record ParserActionExecutionContext : IEquatable<ParserActionExecutionContext>
- Inheritance
-
ParserActionExecutionContext
- Implements
- Inherited Members
- Extension Methods
Constructors
ParserActionExecutionContext(Rule, RuleContent, string, int, int, int)
Immutable action execution data passed to IParserActionExecutor.
public ParserActionExecutionContext(Rule Rule, RuleContent Action, string ActionCode, int InputPosition, int AlternativeIndex, int ElementIndex)
Parameters
RuleRuleCurrent parser rule.
ActionRuleContentAction model node.
ActionCodestringRaw action code.
InputPositionintCurrent parser input position.
AlternativeIndexintCurrent alternative index.
ElementIndexintCurrent element index within the alternative.
Properties
Action
Action model node.
public RuleContent Action { get; init; }
Property Value
ActionCode
Raw action code.
public string ActionCode { get; init; }
Property Value
AlternativeIndex
Current alternative index.
public int AlternativeIndex { get; init; }
Property Value
ElementIndex
Current element index within the alternative.
public int ElementIndex { get; init; }
Property Value
InputPosition
Current parser input position.
public int InputPosition { get; init; }
Property Value
Rule
Current parser rule.
public Rule Rule { get; init; }