Skip to main content

function_refs_in_stmts

Function function_refs_in_stmts 

Source
pub fn function_refs_in_stmts(
    stmts: &[Stmt<'_, '_>],
    name: &str,
    out: &mut Vec<Span>,
)
Expand description

Collect spans where name is called as a free function (not a method). Only matches name(...) calls where the callee is a bare identifier, not $obj->name() or Class::name().