Struct SourceLocation
A SourceRange within a specific workspace document.
public readonly record struct SourceLocation : IComparable<SourceLocation>, IEquatable<SourceLocation>
- Implements
- Inherited Members
- Extension Methods
Constructors
SourceLocation(Uri, SourceRange)
A SourceRange within a specific workspace document.
public SourceLocation(Uri Uri, SourceRange Range)
Parameters
UriUriThe
Uriof the source document.RangeSourceRangeThe range within the source document.
Properties
Range
The range within the source document.
public SourceRange Range { get; init; }
Property Value
Uri
The Uri of the source document.
public Uri Uri { get; init; }
Property Value
Methods
CompareTo(SourceLocation)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(SourceLocation other)
Parameters
otherSourceLocationAn object to compare with this instance.
Returns
- int
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning Less than zero This instance precedes otherin the sort order.Zero This instance occurs in the same position in the sort order as other.Greater than zero This instance follows otherin the sort order.