A line based folding range. To be valid, start and end line must be bigger than zero and smaller than the number of lines in the document. Invalid ranges will be ignored.
Constructor
new(start:Int, end:Int, ?kind:FoldingRangeKind)
Creates a new folding range.
Parameters:
start | The start line of the folded range. |
---|---|
end | The end line of the folded range. |
kind | The kind of the folding range. |
Variables
end:Int
The zero-based end line of the range to fold. The folded area ends with the line's last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.
kind:Null<FoldingRangeKind>
Describes the {@link FoldingRangeKind Kind} of the folding range such as {@link FoldingRangeKind.Comment Comment} or {@link FoldingRangeKind.Region Region}. The kind is used to categorize folding ranges and used by commands like 'Fold all comments'. See {@link FoldingRangeKind} for an enumeration of all kinds. If not set, the range is originated from a syntax element.
start:Int
The zero-based start line of the range to fold. The folded area starts after the line's last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.