Protected
collectProtected
collectProtected
collectHandle a folding range request.
The document to compute folding ranges for
Optional
_cancelToken: CancellationTokenThe computed folding ranges
Protected
includeTemplate method to determine whether the folding range for this cst node should include its last line. Returns false by default for ast nodes which end in braces and for comments.
Optional
kind: stringProtected
shouldTemplate method to determine whether the specified AstNode
should be handled by the folding range provider.
Returns true by default for all nodes. Returning false only ignores the specified node and not its content.
To ignore the content of a node use shouldProcessContent
.
Template method to determine whether the content/children of the specified AstNode
should be handled by the folding range provider.
Returns true by default for all nodes. Returning false ignores all content of this node, even transitive ones.
For more precise control over foldings use the shouldProcess
method.
Protected
toOptional
kind: string
A specialized folding range provider for the grammar language