wake.ir.statements.while_statement
module
#
WhileStatement
class
#
Bases: StatementAbc
Example
Lines 2-3 in the following code:
Source code in wake/ir/statements/while_statement.py
body: StatementAbc
property
#
Returns:
Type | Description |
---|---|
StatementAbc
|
Body of the 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 while statement. |
parent: Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
property
#
Returns:
Type | Description |
---|---|
Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
|
Parent IR node. |