wake.ir.yul.assignment
module
#
YulAssignment
class
#
Bases: YulStatementAbc
Important
Should not be confused with let a, b := foo() which is a YulVariableDeclaration.
Example
a, b := foo() in the following example:
Source code in wake/ir/yul/assignment.py
children
property
#
Yields:
| Type | Description |
|---|---|
Union[YulFunctionCall, YulIdentifier, YulLiteral]
|
Direct children of this node. |
value
property
#
Returns:
| Type | Description |
|---|---|
Union[YulFunctionCall, YulIdentifier, YulLiteral]
|
Value that is assigned to the variables. |
variable_names
property
#
Returns:
| Type | Description |
|---|---|
Tuple[YulIdentifier, ...]
|
Identifiers of variables that are assigned to in the order they appear in the source code. |