While statement
woke.ast.ir.statement.while_statement
module
#
WhileStatement
class
#
Bases: StatementAbc
Example
Lines 2-3 in the following code:
Source code in woke/ast/ir/statement/while_statement.py
body: StatementAbc
property
#
Returns:
Type | Description |
---|---|
StatementAbc
|
Body of the while statement. |
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. |