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:166
Bind a struct in a module namespace.
Parameters
-
local_name — Name of local.; Type: str
-
struct — Struct.; Type: SemanticStruct
-
node — Syntax node to process.; Type: astx.AST
-
module_key — Canonical module identity.; Type: ModuleKey | None
Returns
Result of this operation: bind a struct in a module namespace.; Type: SemanticBinding