Table of Contents

Class EmbeddedCodeRuntimeEntry

Namespace
Utils.Parser.EmbeddedCode
Assembly
Utils.Parser.dll

Describes one embedded-code item discovered with parser-runtime-compatible indexing metadata.

public sealed record EmbeddedCodeRuntimeEntry : IEquatable<EmbeddedCodeRuntimeEntry>
Inheritance
EmbeddedCodeRuntimeEntry
Implements
Inherited Members
Extension Methods

Constructors

EmbeddedCodeRuntimeEntry(EmbeddedCodeSource, bool, EmbeddedCodeUnsupportedReason?)

Initializes a new instance of the EmbeddedCodeRuntimeEntry record.

public EmbeddedCodeRuntimeEntry(EmbeddedCodeSource source, bool isRuntimeExecutable, EmbeddedCodeUnsupportedReason? unsupportedReason = null)

Parameters

source EmbeddedCodeSource

Raw source metadata, including runtime-compatible indexes when available.

isRuntimeExecutable bool

Whether the embedded-code item is executable by parser runtime hooks.

unsupportedReason EmbeddedCodeUnsupportedReason?

Reason why the item is not executable, or null/None when executable.

Properties

AlternativeIndex

Gets the optional runtime alternative index.

public int? AlternativeIndex { get; }

Property Value

int?

ElementIndex

Gets the optional runtime element index.

public int? ElementIndex { get; }

Property Value

int?

IsRuntimeExecutable

Gets a value indicating whether the embedded-code item is executable by parser runtime hooks.

public bool IsRuntimeExecutable { get; }

Property Value

bool

Kind

Gets the embedded-code kind.

public EmbeddedCodeKind Kind { get; }

Property Value

EmbeddedCodeKind

RuleName

Gets the optional owning parser rule name.

public string? RuleName { get; }

Property Value

string

RuntimeKey

Gets parser-runtime dispatch metadata for executable entries.

public EmbeddedCodeRuntimeKey? RuntimeKey { get; }

Property Value

EmbeddedCodeRuntimeKey

Source

Gets the raw source metadata, including runtime-compatible indexes when available.

public EmbeddedCodeSource Source { get; }

Property Value

EmbeddedCodeSource

UnsupportedReason

Gets the unsupported reason for skipped entries, or None for executable entries.

public EmbeddedCodeUnsupportedReason UnsupportedReason { get; }

Property Value

EmbeddedCodeUnsupportedReason