Revert statement
woke.ast.ir.statement.revert_statement
module
#
RevertStatement
class
#
Bases: StatementAbc
Warning
Only matches reverts with user-defined errors:
This is an ExpressionStatement with a FunctionCall expression:Source code in woke/ast/ir/statement/revert_statement.py
error_call: FunctionCall
property
#
Example
in the following revert statement:Returns:
Type | Description |
---|---|
FunctionCall
|
Expression representing the error call. |
parent: Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
property
#
Returns:
Type | Description |
---|---|
Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
|
Parent IR node. |