API reference
python:astx:astx.WhileExpr.__init__
method __init__
__init__(condition: Expr, body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/flows.py:864
Declared as: python:astx:astx.flows.WhileExpr.__init__
Initialize the WhileExpr instance.
Parameters
-
condition — Condition controlling the operation.; 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