wake.ir.statements.try_statement
module
#
TryStatement
class
#
Bases: StatementAbc
Example
Source code in wake/ir/statements/try_statement.py
children: Iterator[Union[TryCatchClause, FunctionCall]]
property
#
Yields:
Type | Description |
---|---|
Union[TryCatchClause, FunctionCall]
|
Direct children of this node. |
clauses: Tuple[TryCatchClause, ...]
property
#
Returns:
Type | Description |
---|---|
Tuple[TryCatchClause, ...]
|
Try/catch clauses. |
external_call: FunctionCall
property
#
Returns:
Type | Description |
---|---|
FunctionCall
|
External call executed in the try statement. |
parent: Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
property
#
Returns:
Type | Description |
---|---|
Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
|
Parent IR node. |