Struct CompilerDiagnostic
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
CodeintThe diagnostic code.
MessagestringHuman-readable message.
PositionTextPositionSource position where the diagnostic occurred.
Properties
Code
The diagnostic code.
public int Code { get; init; }
Property Value
Message
Human-readable message.
public string Message { get; init; }
Property Value
Position
Source position where the diagnostic occurred.
public TextPosition Position { get; init; }