Skip to main content

is_associated_call

Function is_associated_call 

Source
pub fn is_associated_call(node: &AIRNode) -> bool
Expand description

True when node is a Call the lowerer classified as an associated-function call (Type.method(args) — no self prepended), via the bock_air::lower::ASSOC_CALL_META_KEY stamp.

Backends use this to emit a static / free-function call keyed by the type name (Type.method(args)) instead of the value-receiver method form their generic fall-through would produce — which camel-cases the type name into a non-existent value (typeValue.method(...)). The companion to assoc_fn_def, which recognises the matching definition shape.