Skip to main content

collect

Function collect 

Source
fn collect(source: &str) -> Vec<(Span, bool)>
Expand description

Every AST node’s span paired with whether it is a folding candidate (a multi-line block-like construct). Non-candidate spans are still collected — selection chains need the fine-grained leaves. Empty when the file has no recognisable header (recovery returned nothing).