Skip to main content

folding_ranges

Function folding_ranges 

Source
pub fn folding_ranges(source: &str) -> Vec<FoldingRange>
Expand description

Extract folding ranges from Solidity source using tree-sitter.

Returns ranges for contracts, functions, structs, enums, block statements, multi-line comments, consecutive single-line comments, and import groups.