Function uvls::core::ast::visitor::visit_children

source ·
pub fn visit_children<'a, F, T, V>(state: &mut V, f: F) -> T
where V: Visitor<'a>, F: FnMut(&mut V) -> T, T: Default,
Expand description

Utility function, tree-sitter uses cursor to traverse trees, this creates a scope that guarantees to “go down”, call f and later “go up” one level. It also protects against stack overflow