Do while statement
woke.ast.ir.statement.do_while_statement
module
#
DoWhileStatement
class
#
Bases: StatementAbc
Example
Lines 2-4 in the following code:
Source code in woke/ast/ir/statement/do_while_statement.py
body: StatementAbc
property
#
Returns:
Type | Description |
---|---|
StatementAbc
|
Body of the do-while statement. |
condition: ExpressionAbc
property
#
Returns:
Type | Description |
---|---|
ExpressionAbc
|
Condition of the do-while statement. |
parent: Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
property
#
Returns:
Type | Description |
---|---|
Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
|
Parent IR node. |