Table of Contents

Struct SourceSpan

Namespace
ShadowDusk.HLSL.Ast
Assembly
ShadowDusk.HLSL.dll

Source location range covering a contiguous span of characters in the input file.

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

Constructors

SourceSpan(int, int, int, int)

Source location range covering a contiguous span of characters in the input file.

public SourceSpan(int StartLine, int StartColumn, int EndLine, int EndColumn)

Parameters

StartLine int
StartColumn int
EndLine int
EndColumn int

Fields

Unknown

Sentinel value indicating no known source location.

public static readonly SourceSpan Unknown

Field Value

SourceSpan

Properties

EndColumn

public int EndColumn { get; init; }

Property Value

int

EndLine

public int EndLine { get; init; }

Property Value

int

StartColumn

public int StartColumn { get; init; }

Property Value

int

StartLine

public int StartLine { get; init; }

Property Value

int

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.