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
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. |