Skip to main content

count_function_references

Function count_function_references 

Source
fn count_function_references(gcx: Gcx<'_>) -> HashMap<FunctionId, RefInfo>
Expand description

Counts, for every function of the unit, the expressions that resolve to it, calls and references used as values alike. type_of_expr gives the single declaration the type checker selected, so overload selection, the qualified and using for forms and import aliases are all attributed to the right function.