pub fn rust_function_body_calls(
source: &str,
function: Node<'_>,
) -> Vec<CallTuple>Expand description
Calls that run when this Rust function body runs.
A call written in a macro_rules! template that is defined inside the body
runs only where that macro is expanded, not where it is defined. Such a
call therefore counts only when the body invokes the macro (name!(..)),
directly or through another local macro whose template is itself expanded.
A local macro that nothing invokes contributes no calls. An invocation in a
nested fn item counts for the enclosing body, as the stored call graph
also attributes a nested item’s calls to the function around it.