API reference
python:astx:astx.flows.DoWhileStmt
class DoWhileStmt
DoWhileStmt(condition: Expr, body: Block, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None)
Source: packages/astx/src/astx/flows.py:1122
AST class for do-while statement.
Attributes
-
condition — Condition controlling the operation.; Type: Expr
-
body — Statements forming the body.; Type: Block
-
kind — Kind of value or operation.; Type: ASTKind
-
loc — Type: SourceLocation
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
Methods
-
__init__ — Initialize the DoWhileStmt instance.
-
__str__ — Return a string representation of the object.
Attributes
- kind —