class LSP::SelectionRange

Overview

A selection range: a range and its parents, from the innermost to the outermost. Every parent contains its child.

A class rather than a struct: the parent is another selection range.

Included Modules

Defined in:

requests/language_features/selection_range.cr

Constructors

Instance Method Summary

Macros inherited from module JSON::Serializable

json_discriminator(field, mapping, *, default = nil) json_discriminator

Constructor Detail

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

[View source]
def self.new(**args) #

[View source]

Instance Method Detail

def parent : SelectionRange | Nil #

[View source]
def parent=(parent : SelectionRange | Nil) #

[View source]
def range : Range #

[View source]
def range=(range : Range) #

[View source]