Class DiagnosticSpan
- Namespace
- Utils.Parser.Diagnostics
- Assembly
- Utils.Parser.Diagnostics.dll
Represents a zero-based source span for a diagnostic.
public sealed record DiagnosticSpan : IEquatable<DiagnosticSpan>
- Inheritance
-
DiagnosticSpan
- Implements
- Inherited Members
- Extension Methods
Constructors
DiagnosticSpan(int, int)
Initializes a new instance of the DiagnosticSpan record.
public DiagnosticSpan(int start, int length)
Parameters
Properties
Length
Gets the source span length.
public int Length { get; }
Property Value
Start
Gets the zero-based source start index.
public int Start { get; }