Table of Contents

Struct CompilerDiagnostic

Namespace
Pl0.Core
Assembly
Pl0.Core.dll

Diagnostic information produced by the parser/compiler.

public readonly record struct CompilerDiagnostic : IEquatable<CompilerDiagnostic>
Implements
Inherited Members

Constructors

CompilerDiagnostic(int, string, TextPosition)

Diagnostic information produced by the parser/compiler.

public CompilerDiagnostic(int Code, string Message, TextPosition Position)

Parameters

Code int

The diagnostic code.

Message string

Human-readable message.

Position TextPosition

Source position where the diagnostic occurred.

Properties

Code

The diagnostic code.

public int Code { get; init; }

Property Value

int

Message

Human-readable message.

public string Message { get; init; }

Property Value

string

Position

Source position where the diagnostic occurred.

public TextPosition Position { get; init; }

Property Value

TextPosition