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:1153
Declare one loop or comprehension target.
Normalize identifier and inline-declaration targets into a lexical symbol with the iterable element type.
Parameters
-
target — Type: astx.AST
-
element_type — Type: astx.DataType
-
kind — Type: str
-
iteration_kind — Type: IterationKind
Returns
Type: SemanticSymbol | None