Skip to content

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

ObjectTapeDiagnostic

Implements

Constructors

TapeDiagnostic(string, TapeDiagnosticSeverity, TapeDiagnosticStage, string, TapeSourceSpan)

Describes a problem encountered while parsing or executing a Tape document.

Parameters:

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; }

Released under the MIT License.