Table of Contents

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

start int

Zero-based source start index.

length int

Source span length.

Properties

Length

Gets the source span length.

public int Length { get; }

Property Value

int

Start

Gets the zero-based source start index.

public int Start { get; }

Property Value

int