wake.ir.yul.variable_declaration
module
#
YulVariableDeclaration
class
#
Bases: YulStatementAbc
Represents a new variable declaration with the following structure:
Example
let a, b := foo()
in the following example:
Source code in wake/ir/yul/variable_declaration.py
children: Iterator[Union[YulTypedName, YulFunctionCall, YulIdentifier, YulLiteral]]
property
#
Yields:
Type | Description |
---|---|
Union[YulTypedName, YulFunctionCall, YulIdentifier, YulLiteral]
|
Direct children of this node. |
parent: YulBlock
property
#
Returns:
Type | Description |
---|---|
YulBlock
|
Parent IR node. |
value: Optional[Union[YulFunctionCall, YulIdentifier, YulLiteral]]
property
#
Returns:
Type | Description |
---|---|
Optional[Union[YulFunctionCall, YulIdentifier, YulLiteral]]
|
Value assigned to the variables. |
variables: Tuple[YulTypedName, ...]
property
#
Returns:
Type | Description |
---|---|
Tuple[YulTypedName, ...]
|
Tuple of variables declared in this statement. |