wake.ir.yul.leave
module
#
YulLeave
class
#
Bases: YulStatementAbc
Leave statement exits the execution of the current function.
It is analogous to the return
statement in Solidity, except that it does not accept any arguments to be returned as a return value.
Instead, it returns the last-assigned values to the return variables of the function (or default values if none were assigned).
Example
Source code in wake/ir/yul/leave.py
parent: YulBlock
property
#
Returns:
Type | Description |
---|---|
YulBlock
|
Parent IR node. |