Skip to main content

run_query

Function run_query 

Source
pub fn run_query(
    tree: &Tree,
    source: &str,
    query_source: &str,
) -> Result<Vec<Vec<Capture>>>
Expand description

Runs query_source against tree, returning one Vec<Capture> per match (in source order) - the shape every converter builds its extraction logic on top of, so no converter module touches the raw tree-sitter API directly.