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: Iterator[Union[YulFunctionCall, YulIdentifier, YulLiteral]]
property
#
Yields:
Type | Description |
---|---|
Union[YulFunctionCall, YulIdentifier, YulLiteral]
|
Direct children of this node. |
parent: YulBlock
property
#
Returns:
Type | Description |
---|---|
YulBlock
|
Parent IR node. |
value: Union[YulFunctionCall, YulIdentifier, YulLiteral]
property
#
Returns:
Type | Description |
---|---|
Union[YulFunctionCall, YulIdentifier, YulLiteral]
|
Value that is assigned to the variables. |
variable_names: Tuple[YulIdentifier, ...]
property
#
Returns:
Type | Description |
---|---|
Tuple[YulIdentifier, ...]
|
Identifiers of variables that are assigned to in the order they appear in the source code. |