clippy_utils

Function method_calls

source
pub fn method_calls<'tcx>(
    expr: &'tcx Expr<'tcx>,
    max_depth: usize,
) -> (Vec<Symbol>, MethodArguments<'tcx>, Vec<Span>)
Expand description

Returns the method names and argument list of nested method call expressions that make up expr. method/span lists are sorted with the most recent call first.