class
LSP::LocationLink
- LSP::LocationLink
- Reference
- Object
Overview
Represents a location inside a resource, such as a line inside a text file.
Included Modules
Defined in:
base/location_link.crConstructors
Instance Method Summary
-
#origin_selection_range : Range | Nil
Span of the origin of this link.
-
#origin_selection_range=(origin_selection_range : Range | Nil)
Span of the origin of this link.
-
#target_range : Range
The full target range of this link.
-
#target_range=(target_range : Range)
The full target range of this link.
-
#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.
-
#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.
-
#target_uri : String
The target resource identifier of this link.
-
#target_uri=(target_uri : String)
The target resource identifier of this link.
Macros inherited from module JSON::Serializable
json_discriminator(field, mapping, *, default = nil)
json_discriminator
Constructor Detail
Instance Method Detail
Span of the origin of this link.
Used as the underlined span for mouse interaction. Defaults to the word range at the mouse position.
Span of the origin of this link.
Used as the underlined span for mouse interaction. Defaults to the word range at the mouse position.
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.
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.
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 the targetRange. See also DocumentSymbol#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 the targetRange. See also DocumentSymbol#range