struct LSP::FoldingRange

Overview

A range of lines the client can fold.

Included Modules

Defined in:

requests/language_features/folding_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 end_character : Int32 | Nil #

The zero-based character where the folding range ends.


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

The zero-based character where the folding range ends.


[View source]
def end_line : Int32 #

The zero-based line where the folding range ends (included in the folded region).


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

The zero-based line where the folding range ends (included in the folded region).


[View source]
def kind : FoldingRangeKind | Nil #

The kind of the folding range, if it is not a comment or an import.


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

The kind of the folding range, if it is not a comment or an import.


[View source]
def start_character : Int32 | Nil #

The zero-based character where the folding range starts. Only sent to clients that did not announce lineFoldingOnly.


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

The zero-based character where the folding range starts. Only sent to clients that did not announce lineFoldingOnly.


[View source]
def start_line : Int32 #

The zero-based line where the folding range starts.


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

The zero-based line where the folding range starts.


[View source]