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
property
#
Yields:
Type | Description |
---|---|
Union[YulTypedName, YulFunctionCall, YulIdentifier, YulLiteral]
|
Direct children of this node. |
value
property
#
Returns:
Type | Description |
---|---|
Optional[Union[YulFunctionCall, YulIdentifier, YulLiteral]]
|
Value assigned to the variables. |
variables
property
#
Returns:
Type | Description |
---|---|
Tuple[YulTypedName, ...]
|
Tuple of variables declared in this statement. |