pub fn preorder_expr(start: &Expr, cb: &mut dyn FnMut(WalkEvent<Expr>) -> bool)
Expand description
Preorder walk all the expression’s child expressions preserving events.
If the callback returns true on an [WalkEvent::Enter
], the subtree of the expression will be skipped.
Note that the subtree may already be skipped due to the context analysis this function does.