wake.ir.statements.do_while_statement
module
#
DoWhileStatement
class
#
Bases: StatementAbc
Example
Lines 2-4 in the following code:
Source code in wake/ir/statements/do_while_statement.py
body: StatementAbc
property
#
Returns:
Type | Description |
---|---|
StatementAbc
|
Body of the do-while statement. |
children: Iterator[Union[ExpressionAbc, StatementAbc]]
property
#
Yields:
Type | Description |
---|---|
Union[ExpressionAbc, StatementAbc]
|
Direct children of this node. |
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. |