wake.ir.yul.switch
module
#
YulSwitch
class
#
Bases: YulStatementAbc
Represents a switch statement with the following structure:
Source code in wake/ir/yul/switch.py
cases
property
#
children
property
#
Yields:
Type | Description |
---|---|
Union[YulFunctionCall, YulIdentifier, YulLiteral, YulCase]
|
Direct children of this node. |
expression
property
#
Returns:
Type | Description |
---|---|
Union[YulFunctionCall, YulIdentifier, YulLiteral]
|
Expression that is evaluated to determine which case to execute. |