API reference
python:astx:astx.ForCountLoopStmt.__init__
method __init__
__init__(initializer: InlineVariableDeclaration, condition: Expr, update: Expr, body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/flows.py:375
Declared as: python:astx:astx.flows.ForCountLoopStmt.__init__
Initialize the ForCountLoopStmt instance.
Parameters
-
initializer — Expression providing the initial value.; Type: InlineVariableDeclaration
-
condition — Condition controlling the operation.; Type: Expr
-
update — Update.; 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