Table of Contents

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

FxParseErrorCode

Column

1-based column number of the error location.

public required int Column { get; init; }

Property Value

int

Line

1-based line number of the error location.

public required int Line { get; init; }

Property Value

int

Message

Human-readable error description.

public required string Message { get; init; }

Property Value

string

SourceFile

The source file path or display name passed to the parser.

public required string SourceFile { get; init; }

Property Value

string

Span

Source span covering the token or construct that caused the error.

public required SourceSpan Span { get; init; }

Property Value

SourceSpan

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.