class LSProtocol::SelectionRange

Overview

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

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(range : Range | Nil, parent : SelectionRange | Nil = nil) #

[View source]

Instance Method Detail

def parent : SelectionRange | Nil #

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


[View source]
def range : Range #

The Range of this selection range.


[View source]