class

LSProtocol::SelectionRange

Inherits JSON::Serializable / Reference / Object

A selection range represents a part of a selection hierarchy. A selection range may have a parent selection range that contains it.

Constructors

new(pull : JSON::PullParser)
Source
new(range : Range | Nil, parent : SelectionRange | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

parent

The parent selection range containing this range. Therefore parent.range must contain this.range.

Source
range

The Range of this selection range.

Source