API reference
python:astx:astx.flows.ForRangeLoopExpr.__init__
method __init__
__init__(variable: InlineVariableDeclaration, start: Expr, end: Expr, step: Expr, body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/flows.py:286
Initialize the ForRangeLoopExpr instance.
Parameters
-
variable — Variable.; Type: InlineVariableDeclaration
-
start — Starting position.; Type: Expr
-
end — End.; Type: Expr
-
step — Iteration stride.; Type: Expr
-
body — Statements forming the body.; Type: Block
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None