API reference
python:astx:astx.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:334
Declared as: python:astx:astx.flows.ForRangeLoopExpr.__init__
Initialize the ForRangeLoopExpr instance.
Parameters
-
variable — Type: InlineVariableDeclaration
-
start — Type: Expr
-
end — Type: Expr
-
step — Type: Expr
-
body — Type: Block
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]