Implementation of LocationLink interface from Language Server Protocol

DO NOT add new properties or methods to this class that are specific to Moonshine IDE or to a particular language. Create a subclass for new properties or create a utility function for methods.

See also:

Static methods

staticparse(original:Dynamic):LocationLink

Constructor

@:value({ originSelectionRange : null, targetSelectionRange : null, targetRange : null, targetUri : null })new(?targetUri:String, ?targetRange:Range, ?targetSelectionRange:Range, ?originSelectionRange:Range)

Variables

originSelectionRange:Null<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.

targetRange: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.

targetSelectionRange: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

targetUri:String

The target resource identifier of this link.