API reference
python:irx:irx.analysis.handlers.base.SemanticAnalyzerCore._declare_iteration_target
method _declare_iteration_target
_declare_iteration_target(target: astx.AST, element_type: astx.DataType, *, kind: str, iteration_kind: IterationKind) -> SemanticSymbol | None
Source: packages/irx/src/irx/analysis/handlers/base.py:1015
Declare one loop or comprehension target.
Normalize identifier and inline-declaration targets into a lexical symbol with the iterable element type.
Parameters
-
target — Destination of the operation.; Type: astx.AST
-
element_type — Type of each element.; Type: astx.DataType
-
kind — Kind of value or operation.; Type: str
-
iteration_kind — Iteration kind.; Type: IterationKind
Returns
Result of this operation: declare one loop or comprehension target.; Type: SemanticSymbol | None