TapeDiagnostic
Namespace: Hex1b.Automation
Assembly: Hex1b.dll
Describes a problem encountered while parsing or executing a Tape document.
csharp
public sealed record TapeDiagnostic : IEquatable<TapeDiagnostic>Inheritance
Object → TapeDiagnostic
Implements
Constructors
TapeDiagnostic(string, TapeDiagnosticSeverity, TapeDiagnosticStage, string, TapeSourceSpan)
Describes a problem encountered while parsing or executing a Tape document.
Parameters:
Code(String): The stable diagnostic identifier.Severity(TapeDiagnosticSeverity): The diagnostic severity.Stage(TapeDiagnosticStage): The stage that reported the diagnostic.Message(String): The human-readable explanation.Span(TapeSourceSpan): The associated source range.
csharp
public TapeDiagnostic(string Code, TapeDiagnosticSeverity Severity, TapeDiagnosticStage Stage, string Message, TapeSourceSpan Span)Properties
Code
The stable diagnostic identifier.
Returns: String
csharp
public string Code { get; init; }Message
The human-readable explanation.
Returns: String
csharp
public string Message { get; init; }Severity
The diagnostic severity.
Returns: TapeDiagnosticSeverity
csharp
public TapeDiagnosticSeverity Severity { get; init; }Span
The associated source range.
Returns: TapeSourceSpan
csharp
public TapeSourceSpan Span { get; init; }Stage
The stage that reported the diagnostic.
Returns: TapeDiagnosticStage
csharp
public TapeDiagnosticStage Stage { get; init; }