API reference
python:irx:irx.analysis.handlers.control_flow.ControlFlowVisitorMixin.visit
method visit
Variant 1
visit(node: astx.AssertStmt) -> None
Visit AssertStmt nodes.
Parameters
- node — Syntax node to process.; Type: astx.AssertStmt
Returns
Type: None
Variant 2
visit(node: astx.FunctionReturn) -> None
Visit FunctionReturn nodes.
Parameters
- node — Syntax node to process.; Type: astx.FunctionReturn
Returns
Type: None
Variant 3
visit(node: astx.YieldStmt) -> None
Visit YieldStmt nodes.
Parameters
- node — Syntax node to process.; Type: astx.YieldStmt
Returns
Type: None
Variant 4
visit(node: astx.YieldExpr) -> None
Visit YieldExpr nodes.
Parameters
- node — Syntax node to process.; Type: astx.YieldExpr
Returns
Type: None
Variant 5
visit(node: astx.YieldFromExpr) -> None
Visit YieldFromExpr nodes.
Parameters
- node — Syntax node to process.; Type: astx.YieldFromExpr
Returns
Type: None
Variant 6
visit(node: astx.IfStmt) -> None
Analyze each conditional arm in its own declaration scope.
Inner declarations may shadow outer bindings; assignments resolve to the nearest visible binding. Arm-local declarations do not escape.
Parameters
- node — Syntax node to process.; Type: astx.IfStmt
Returns
Type: None
Variant 7
visit(node: astx.WhileStmt) -> None
Analyze a while body without leaking its declarations.
The condition uses the enclosing scope. Body-local declarations shadow outer bindings but remain invisible after the loop, including when the body never executes.
Parameters
- node — Syntax node to process.; Type: astx.WhileStmt
Returns
Type: None
Variant 8
visit(node: astx.ForCountLoopStmt) -> None
Visit ForCountLoopStmt nodes.
Parameters
- node — Syntax node to process.; Type: astx.ForCountLoopStmt
Returns
Type: None
Variant 9
visit(node: astx.ForRangeLoopStmt) -> None
Visit ForRangeLoopStmt nodes.
Parameters
- node — Syntax node to process.; Type: astx.ForRangeLoopStmt
Returns
Type: None
Variant 10
visit(node: astx.ForInLoopStmt) -> None
Visit ForInLoopStmt nodes.
Parameters
- node — Syntax node to process.; Type: astx.ForInLoopStmt
Returns
Type: None
Variant 11
visit(node: astx.WithStmt) -> None
Resolve a pinned manager, owning enter result, and checked exit.
enter is called without explicit arguments using normal defaults. exit takes exactly one Boolean completion argument and returns none. Manager and entered-value lifetimes use ordinary local stores; each source manager and enter call is analyzed once.
Parameters
- node — Syntax node to process.; Type: astx.WithStmt
Returns
Type: None
Variant 12
visit(node: astx.BreakStmt) -> None
Visit BreakStmt nodes.
Parameters
- node — Syntax node to process.; Type: astx.BreakStmt
Returns
Type: None
Variant 13
visit(node: astx.ContinueStmt) -> None
Visit ContinueStmt nodes.
Parameters
- node — Syntax node to process.; Type: astx.ContinueStmt
Returns
Type: None
Source: packages/irx/src/irx/analysis/handlers/control_flow.py:498