API reference
python:irx:irx.analysis.ResolvedContextManager
class ResolvedContextManager
ResolvedContextManager(class_: SemanticClass, manager_type: astx.DataType, enter: ResolvedMethodCall, exit: ResolvedMethodCall, manager_binding: astx.VariableDeclaration, enter_call: astx.MethodCall, value_binding: astx.VariableDeclaration | None, success_binding: astx.VariableDeclaration, exit_call: astx.MethodCall, target_symbol: SemanticSymbol | None = None)
Source: packages/irx/src/irx/analysis/resolved_nodes.py:1636
Declared as: python:irx:irx.analysis.resolved_nodes.ResolvedContextManager
Resolved context-manager metadata.
Capture analyzed bindings and calls for one resource scope. The manager binding pins its identity; value_binding owns the actual enter result, including when no source target is requested. Exit receives a Boolean completion value and returns none. Lowering reuses ordinary declaration ownership and call plans without resolving the protocol again.
Attributes
-
class_ — Class being processed.; Type: SemanticClass
-
manager_type — Type of manager.; Type: astx.DataType
-
enter — Enter.; Type: ResolvedMethodCall
-
exit — Exit.; Type: ResolvedMethodCall
-
manager_binding — Manager binding.; Type: astx.VariableDeclaration
-
enter_call — Enter call.; Type: astx.MethodCall
-
value_binding — Value binding.; Type: astx.VariableDeclaration | None
-
success_binding — Success binding.; Type: astx.VariableDeclaration
-
exit_call — Exit call.; Type: astx.MethodCall
-
target_symbol — Target symbol.; Type: SemanticSymbol | None
Methods
- __init__ —