Table of Contents

Struct SourceLocation

Namespace
RDCore.SDK.Model.Source
Assembly
RDCore.SDK.dll

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

Uri Uri

The Uri of the source document.

Range SourceRange

The range within the source document.

Properties

Range

The range within the source document.

public SourceRange Range { get; init; }

Property Value

SourceRange

Uri

The Uri of the source document.

public Uri Uri { get; init; }

Property Value

Uri

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

other SourceLocation

An 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 other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.