wake.ir.statements.block
module
#
Block
class
#
Bases: StatementAbc
Block statements group multiple statements into a single block.
Example
Lines 3-5 in the following code:
Source code in wake/ir/statements/block.py
children: Iterator[StatementAbc]
property
#
Yields:
Type | Description |
---|---|
StatementAbc
|
Direct children of this node. |
parent: Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement, FunctionDefinition, ModifierDefinition, TryCatchClause]
property
#
Returns:
Type | Description |
---|---|
Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement, FunctionDefinition, ModifierDefinition, TryCatchClause]
|
Parent IR node. |
statements: Tuple[StatementAbc, ...]
property
#
Can be empty.
Returns:
Type | Description |
---|---|
Tuple[StatementAbc, ...]
|
Statements in the block. |