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

Methods

Attributes

Search documentation

Type to search.