API reference
python:irx:irx.analysis.resolved_nodes.SemanticStruct
class SemanticStruct
SemanticStruct(symbol_id: str, name: str, module_key: ModuleKey, qualified_name: str, declaration: astx.StructDefStmt, fields: tuple['SemanticStructField', ...] = (), field_indices: dict[str, int] = dict())
Source: packages/irx/src/irx/analysis/resolved_nodes.py:171
Resolved struct information.
Describe one top-level struct declaration with module-aware identity.
Attributes
-
symbol_id — Identifier for symbol.; Type: str
-
name — Name identifying this declaration.; Type: str
-
module_key — Canonical module identity.; Type: ModuleKey
-
qualified_name — Name of qualified.; Type: str
-
declaration — Declaration being processed.; Type: astx.StructDefStmt
-
fields — Declared fields.; Type: tuple['SemanticStructField', ...]
-
field_indices — Field indices.; Type: dict[str, int]
Methods
- __init__ —