struct

LSP::LocationLink

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

origin_selection_range

Span of the origin of this link.

Used as the underlined span for mouse interaction. Defaults to the word range at the mouse position.

Source
origin_selection_range=(origin_selection_range : Range | Nil)

Span of the origin of this link.

Used as the underlined span for mouse interaction. Defaults to the word range at the mouse position.

Source
target_range

The full target range of this link. If the target for example is a symbol then target range is the range enclosing this symbol not including leading/trailing whitespace but everything else like comments. This information is typically used to highlight the range in the editor.

Source
target_range=(target_range : Range)

The full target range of this link. If the target for example is a symbol then target range is the range enclosing this symbol not including leading/trailing whitespace but everything else like comments. This information is typically used to highlight the range in the editor.

Source
target_selection_range

The range that should be selected and revealed when this link is being followed, e.g the name of a function. Must be contained by the targetRange. See also DocumentSymbol#range

Source
target_selection_range=(target_selection_range : Range)

The range that should be selected and revealed when this link is being followed, e.g the name of a function. Must be contained by the targetRange. See also DocumentSymbol#range

Source
target_uri

The target resource identifier of this link.

Source
target_uri=(target_uri : String)

The target resource identifier of this link.

Source