Class PreparedExpressionEmbeddedCodeRegistryBuildEntry
- Namespace
- Utils.Parser.Expressions
- Assembly
- Utils.Parser.Expressions.dll
Describes one embedded-code preparation or skip decision made while building a prepared expression registry.
public sealed record PreparedExpressionEmbeddedCodeRegistryBuildEntry : IEquatable<PreparedExpressionEmbeddedCodeRegistryBuildEntry>
- Inheritance
-
PreparedExpressionEmbeddedCodeRegistryBuildEntry
- Implements
- Inherited Members
- Extension Methods
Constructors
PreparedExpressionEmbeddedCodeRegistryBuildEntry(EmbeddedCodeSource, PreparedExpressionEmbeddedCodeKey?, string?, EmbeddedCodePreparationStatus, ParserDiagnosticDescriptor?, Exception?, IReadOnlyList<object?>?, bool, bool, bool, string?, EmbeddedCodeUnsupportedReason?)
Initializes a new instance of the PreparedExpressionEmbeddedCodeRegistryBuildEntry record.
public PreparedExpressionEmbeddedCodeRegistryBuildEntry(EmbeddedCodeSource source, PreparedExpressionEmbeddedCodeKey? key, string? ruleName, EmbeddedCodePreparationStatus status, ParserDiagnosticDescriptor? diagnosticDescriptor = null, Exception? exception = null, IReadOnlyList<object?>? diagnosticArguments = null, bool wasAddedToRegistry = false, bool isDuplicate = false, bool isSkipped = false, string? skipReason = null, EmbeddedCodeUnsupportedReason? unsupportedReason = null)
Parameters
sourceEmbeddedCodeSourceSource metadata for the embedded code item.
keyPreparedExpressionEmbeddedCodeKeyRegistry key used for successful artifacts, or
nullwhen no artifact was registered.ruleNamestringOwning parser rule name, or
nullfor grammar-level items.statusEmbeddedCodePreparationStatusPreparation status associated with this entry.
diagnosticDescriptorParserDiagnosticDescriptorOptional diagnostic metadata returned by the preparer.
exceptionExceptionOptional exception metadata returned by the preparer.
diagnosticArgumentsIReadOnlyList<object>Optional diagnostic arguments returned by the preparer.
wasAddedToRegistryboolWhether the prepared artifact was registered.
isDuplicateboolWhether a successful preparation collided with an existing registry key.
isSkippedboolWhether the item was intentionally skipped without invoking the preparer.
skipReasonstringHuman-readable reason for skipped items.
unsupportedReasonEmbeddedCodeUnsupportedReason?Common unsupported reason for skipped items.
Properties
DiagnosticArguments
Gets optional diagnostic arguments returned by the preparer.
public IReadOnlyList<object?> DiagnosticArguments { get; }
Property Value
DiagnosticDescriptor
Gets optional diagnostic metadata returned by the preparer.
public ParserDiagnosticDescriptor? DiagnosticDescriptor { get; }
Property Value
Exception
Gets optional exception metadata returned by the preparer.
public Exception? Exception { get; }
Property Value
IsDuplicate
Gets a value indicating whether a successful preparation collided with an existing registry key.
public bool IsDuplicate { get; }
Property Value
IsSkipped
Gets a value indicating whether the item was intentionally skipped without invoking the preparer.
public bool IsSkipped { get; }
Property Value
Key
Gets the registry key used for successful artifacts, or null when none was registered.
public PreparedExpressionEmbeddedCodeKey? Key { get; }
Property Value
RuleName
Gets the owning parser rule name, or null for grammar-level items.
public string? RuleName { get; }
Property Value
SkipReason
Gets the human-readable reason for skipped items.
public string? SkipReason { get; }
Property Value
Source
Gets the source metadata for the embedded code item.
public EmbeddedCodeSource Source { get; }
Property Value
Status
Gets the preparation status associated with this entry.
public EmbeddedCodePreparationStatus Status { get; }
Property Value
UnsupportedReason
Gets the common unsupported reason for skipped items.
public EmbeddedCodeUnsupportedReason? UnsupportedReason { get; }
Property Value
WasAddedToRegistry
Gets a value indicating whether the prepared artifact was registered.
public bool WasAddedToRegistry { get; }