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: Tuple[YulCase, ...]
property
#
expression: Union[YulFunctionCall, YulIdentifier, YulLiteral]
property
#
Returns:
| Type | Description |
|---|---|
Union[YulFunctionCall, YulIdentifier, YulLiteral]
|
Expression that is evaluated to determine which case to execute. |