Function walk_expr

Source
pub fn walk_expr<V: ExprVisitor>(
    visitor: &mut V,
    expr: &Expr,
) -> Result<bool, V::Error>
Expand description

A util function that traverses an AST Expr in depth-first order. Returns Ok(true) if all nodes were visited, and Ok(false) if any call to pre_visit or post_visit returned Ok(false) and may have cut short the recursion.