Class EmbeddedAction
An opaque action block embedded in the grammar, captured with its context.
Label references ($xxx) are extracted from the raw code to allow
later resolution without re-parsing the action text.
public record EmbeddedAction : RuleContent, IEquatable<RuleContent>, IEquatable<EmbeddedAction>
- Inheritance
-
EmbeddedAction
- Implements
- Inherited Members
- Extension Methods
Constructors
EmbeddedAction(string, ActionContext, ActionPosition, IReadOnlyList<LabelRef>)
An opaque action block embedded in the grammar, captured with its context.
Label references ($xxx) are extracted from the raw code to allow
later resolution without re-parsing the action text.
public EmbeddedAction(string RawCode, ActionContext Context, ActionPosition Position, IReadOnlyList<LabelRef> Labels)
Parameters
RawCodestringContextActionContextPositionActionPositionLabelsIReadOnlyList<LabelRef>
Properties
Context
public ActionContext Context { get; init; }
Property Value
Labels
Gets the immutable snapshot of label references.
public IReadOnlyList<LabelRef> Labels { get; init; }
Property Value
Position
public ActionPosition Position { get; init; }
Property Value
RawCode
public string RawCode { get; init; }