wake.ir.meta.override_specifier
module
#
OverrideSpecifier
class
#
Bases: SolidityAbc
Example
An override specifier can be used:
- in a FunctionDefinition:
overrideon line 19,
- in a ModifierDefinition:
overrideon line 12,
- in a VariableDeclaration:
override(IERC20)on line 17.
Source code in wake/ir/meta/override_specifier.py
children
property
#
Yields:
| Type | Description |
|---|---|
Union[IdentifierPath, UserDefinedTypeName]
|
Direct children of this node. |
overrides
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
property
#
Returns:
| Type | Description |
|---|---|
Union[FunctionDefinition, ModifierDefinition, VariableDeclaration]
|
Parent IR node. |