Class FxParseError
- Namespace
- ShadowDusk.HLSL
- Assembly
- ShadowDusk.HLSL.dll
A structured diagnostic error produced by the FX9 pre-parser.
public sealed record FxParseError : IEquatable<FxParseError>
- Inheritance
-
FxParseError
- Implements
- Inherited Members
Properties
Code
Diagnostic code identifying the error category.
public required FxParseErrorCode Code { get; init; }
Property Value
Column
1-based column number of the error location.
public required int Column { get; init; }
Property Value
Line
1-based line number of the error location.
public required int Line { get; init; }
Property Value
Message
Human-readable error description.
public required string Message { get; init; }
Property Value
SourceFile
The source file path or display name passed to the parser.
public required string SourceFile { get; init; }
Property Value
Span
Source span covering the token or construct that caused the error.
public required SourceSpan Span { get; init; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.