Skip to main content

walk_nodes

Function walk_nodes 

Source
pub fn walk_nodes<'w, 'a>(
    stmts: &'w [Stmt<'a>],
    visit: impl FnMut(Visited<'w, 'a>) -> Walk,
)
Expand description

for_each_node, with the visitor answering for each statement and expression whether the walk goes on into its children. Exhaustive in the same way: a child is left unvisited only because a visitor said so, never because the walk does not know the kind of node it is in.