Represents a location inside a resource, such as a line inside a text file.

Constructor

new(uri:Uri, rangeOrPosition:EitherType<Range, Position>)

Creates a new location object.

Parameters:

uri

The resource identifier.

rangeOrPosition

The range or position. Positions will be converted to an empty range.

Variables

range:Range

The document range of this location.

uri:Uri

The resource identifier of this location.