Function ide_db::syntax_helpers::node_ext::for_each_tail_expr
source · pub fn for_each_tail_expr(expr: &Expr, cb: &mut dyn FnMut(&Expr))
Expand description
Calls cb
on each expression inside expr
that is at “tail position”.
Does not walk into break
or return
expressions.
Note that modifying the tree while iterating it will cause undefined iteration which might
potentially results in an out of bounds panic.