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