Table of Contents

Class EmbeddedAction

Namespace
Utils.Parser.Model
Assembly
Utils.Parser.dll

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

RawCode string
Context ActionContext
Position ActionPosition
Labels IReadOnlyList<LabelRef>

Properties

Context

public ActionContext Context { get; init; }

Property Value

ActionContext

Labels

Gets the immutable snapshot of label references.

public IReadOnlyList<LabelRef> Labels { get; init; }

Property Value

IReadOnlyList<LabelRef>

Position

public ActionPosition Position { get; init; }

Property Value

ActionPosition

RawCode

public string RawCode { get; init; }

Property Value

string