clippy_utils::visitors

Function for_each_expr

source
pub fn for_each_expr<'tcx, B, C: Continue>(
    cx: &LateContext<'tcx>,
    node: impl Visitable<'tcx>,
    f: impl FnMut(&'tcx Expr<'tcx>) -> ControlFlow<B, C>,
) -> Option<B>
Expand description

Calls the given function once for each expression contained. This will enter bodies, but not nested items.