API reference
python:irx:irx.analysis.bindings.VisibleBindings.bind_function
method bind_function
bind_function(local_name: str, function: SemanticFunction, *, node: astx.AST, module_key: ModuleKey | None = None) -> SemanticBinding
Source: packages/irx/src/irx/analysis/bindings.py:160
Bind a function in a module namespace.
Parameters
-
local_name — Type: str
-
function — Type: SemanticFunction
-
node — Type: astx.AST
-
module_key — Type: ModuleKey | None
Returns
Type: SemanticBinding