struct

LSP::FoldingRange

Inherits JSON::Serializable < LSP::Initializer < Struct < Value < Object

A range of lines the client can fold.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

end_character

The zero-based character where the folding range ends.

Source
end_character=(end_character : Int32 | Nil)

The zero-based character where the folding range ends.

Source
end_line

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

Source
end_line=(end_line : Int32)

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

Source
kind

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

Source
kind=(kind : FoldingRangeKind | Nil)

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

Source
start_character

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

Source
start_character=(start_character : Int32 | Nil)

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

Source
start_line

The zero-based line where the folding range starts.

Source
start_line=(start_line : Int32)

The zero-based line where the folding range starts.

Source