API reference
python:irx:irx.analysis.ClassLifecyclePhase
class ClassLifecyclePhase
ClassLifecyclePhase(owner: str, fields: tuple[SemanticClassFieldInitializer, ...], initializer: SemanticFunction | None = None, destructor: SemanticFunction | None = None)
Source: packages/irx/src/irx/analysis/resolved_nodes.py:704
Declared as: python:irx:irx.analysis.resolved_nodes.ClassLifecyclePhase
One canonical initialization and destruction phase.
Attributes
-
owner — Owner keeping the resource alive.; Type: str
-
fields — Declared fields.; Type: tuple[SemanticClassFieldInitializer, ...]
-
initializer — Expression providing the initial value.; Type: SemanticFunction | None
-
destructor — Destructor.; Type: SemanticFunction | None
Methods
- __init__ —