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
sourceEmbeddedCodeSourceRaw source metadata, including runtime-compatible indexes when available.
isRuntimeExecutableboolWhether the embedded-code item is executable by parser runtime hooks.
unsupportedReasonEmbeddedCodeUnsupportedReason?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
Kind
Gets the embedded-code kind.
public EmbeddedCodeKind Kind { get; }
Property Value
RuleName
Gets the optional owning parser rule name.
public string? RuleName { get; }
Property Value
RuntimeKey
Gets parser-runtime dispatch metadata for executable entries.
public EmbeddedCodeRuntimeKey? RuntimeKey { get; }
Property Value
Source
Gets the raw source metadata, including runtime-compatible indexes when available.
public EmbeddedCodeSource Source { get; }
Property Value
UnsupportedReason
Gets the unsupported reason for skipped entries, or None for executable entries.
public EmbeddedCodeUnsupportedReason UnsupportedReason { get; }