Skip to main content

Module internal_function_used_once

Module internal_function_used_once 

Source

Structs§

RefInfo 🔒
The references resolving to one function. Self-references are recorded apart rather than counted; first_from is None for a reference outside any function body.
ReferenceCounter 🔒
Counts, for every function of the unit, the expressions the type checker resolved to it, direct calls and value-position references alike.

Statics§

INTERNAL_FUNCTION_USED_ONCE

Functions§

only_referenced_within_cycle 🔒
Whether a function’s single reference only enters it through a reference cycle: the chain of single-reference sources loops back on start itself. A loop closing on a later node is someone else’s cycle, and start hangs off it as an inlineable tail.