Skip to main content

walk_exprs

Function walk_exprs 

Source
pub fn walk_exprs(e: &Expr, f: &mut impl FnMut(&Expr))
Expand description

v0.22b: pre-order expression visitor — visits e, then every sub-expression, including statements and tails of nested blocks. Driven by ast::expr_children, the exhaustive total child iterator, rather than a hand-matched recursion duplicating it — a new ExprKind variant fails to compile in expr_children until it is taught to visit it, instead of silently under-visiting here.