Struct LexerDiagnostic
Diagnostic information produced by the lexer.
public readonly record struct LexerDiagnostic : IEquatable<LexerDiagnostic>
- Implements
- Inherited Members
Constructors
LexerDiagnostic(int, string, TextPosition)
Diagnostic information produced by the lexer.
public LexerDiagnostic(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; }