Try statement
woke.ast.ir.statement.try_statement
module
#
TryStatement
class
#
Bases: StatementAbc
Example
Source code in woke/ast/ir/statement/try_statement.py
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. |