API reference

python:irx:irx.analysis.handlers.control_flow.ControlFlowVisitorMixin._declare_context_target

method _declare_context_target

_declare_context_target(node: astx.WithStmt, enter_call: astx.MethodCall) -> astx.VariableDeclaration | None

Source: packages/irx/src/irx/analysis/handlers/control_flow.py:384

Bind an already analyzed enter result with ordinary ownership.

Even an ignored owning result needs a local owner. Source targets retain their declared type and mutability; identifier targets are immutable bindings, not immutable objects.

Parameters

Returns

Result of this operation: bind an already analyzed enter result with ordinary ownership.; Type: astx.VariableDeclaration | None

Search documentation

Type to search.