class LSP::FoldingRange

Overview

Represents a folding range. To be valid, start and end line must be bigger than zero and smaller than the number of lines in the document. Clients are free to ignore invalid ranges.

Included Modules

Defined in:

lsp/protocol/folding_range.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(start_line : Int32, end_line : Int32) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def end_character : Int32 | Nil #

[View source]
def end_character=(end_character : Int32 | Nil) #

[View source]
def end_line : Int32 #

[View source]
def end_line=(end_line : Int32) #

[View source]
def kind : FoldingRangeKind | Nil #

Describes the kind of the folding range such as comment or region. The kind is used to categorize folding ranges and used by commands like 'Fold all comments'. See FoldingRangeKind for an enumeration of standardized kinds.


[View source]
def kind=(kind : FoldingRangeKind | Nil) #

Describes the kind of the folding range such as comment or region. The kind is used to categorize folding ranges and used by commands like 'Fold all comments'. See FoldingRangeKind for an enumeration of standardized kinds.


[View source]
def start_character : Int32 | Nil #

[View source]
def start_character=(start_character : Int32 | Nil) #

[View source]
def start_line : Int32 #

[View source]
def start_line=(start_line : Int32) #

[View source]