wake.ir.meta.override_specifier
module
#
OverrideSpecifier
class
#
Bases: SolidityAbc
Example
An override specifier can be used:
- in a FunctionDefinition:
override
on line 19,
- in a ModifierDefinition:
override
on line 12,
- in a VariableDeclaration:
override(IERC20)
on line 17.
Source code in wake/ir/meta/override_specifier.py
children: Iterator[Union[IdentifierPath, UserDefinedTypeName]]
property
#
Yields:
Type | Description |
---|---|
Union[IdentifierPath, UserDefinedTypeName]
|
Direct children of this node. |
overrides: Tuple[Union[IdentifierPath, UserDefinedTypeName], ...]
property
#
Note
Is empty when there are no round brackets after the override
keyword.
Returns:
Type | Description |
---|---|
Tuple[Union[IdentifierPath, UserDefinedTypeName], ...]
|
Tuple of IR nodes referencing the contract or interface whose declaration is being overridden. |
parent: Union[FunctionDefinition, ModifierDefinition, VariableDeclaration]
property
#
Returns:
Type | Description |
---|---|
Union[FunctionDefinition, ModifierDefinition, VariableDeclaration]
|
Parent IR node. |