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
Fields
Unknown
Sentinel value indicating no known source location.
public static readonly SourceSpan Unknown
Field Value
Properties
EndColumn
public int EndColumn { get; init; }
Property Value
EndLine
public int EndLine { get; init; }
Property Value
StartColumn
public int StartColumn { get; init; }
Property Value
StartLine
public int StartLine { get; init; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.