Function ra_ap_ide_db::syntax_helpers::node_ext::preorder_expr

source ·
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.