diff options
author | Christian <c@ethdev.com> | 2015-01-31 23:50:33 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-31 23:50:33 +0800 |
commit | 4e440b6e5da8cb1122342377156f3706300f98c7 (patch) | |
tree | a43d94498131cc0e5846f013f3e01023a67dce39 /NameAndTypeResolver.h | |
parent | 6c8b5cabdc9e3f48d95e945d093a480c2ab5032e (diff) | |
download | dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar.gz dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar.zst dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.zip |
Fix scoping of event arguments.
Diffstat (limited to 'NameAndTypeResolver.h')
-rw-r--r-- | NameAndTypeResolver.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/NameAndTypeResolver.h b/NameAndTypeResolver.h index 4555491f..4b7ce6e7 100644 --- a/NameAndTypeResolver.h +++ b/NameAndTypeResolver.h @@ -94,17 +94,18 @@ public: DeclarationRegistrationHelper(std::map<ASTNode const*, DeclarationContainer>& _scopes, ASTNode& _astRoot); private: - bool visit(ContractDefinition& _contract); - void endVisit(ContractDefinition& _contract); - bool visit(StructDefinition& _struct); - void endVisit(StructDefinition& _struct); - bool visit(FunctionDefinition& _function); - void endVisit(FunctionDefinition& _function); - bool visit(ModifierDefinition& _modifier); - void endVisit(ModifierDefinition& _modifier); - void endVisit(VariableDefinition& _variableDefinition); - bool visit(VariableDeclaration& _declaration); - bool visit(EventDefinition& _event); + bool visit(ContractDefinition& _contract) override; + void endVisit(ContractDefinition& _contract) override; + bool visit(StructDefinition& _struct) override; + void endVisit(StructDefinition& _struct) override; + bool visit(FunctionDefinition& _function) override; + void endVisit(FunctionDefinition& _function) override; + bool visit(ModifierDefinition& _modifier) override; + void endVisit(ModifierDefinition& _modifier) override; + void endVisit(VariableDefinition& _variableDefinition) override; + bool visit(VariableDeclaration& _declaration) override; + bool visit(EventDefinition& _event) override; + void endVisit(EventDefinition& _event) override; void enterNewSubScope(Declaration const& _declaration); void closeCurrentScope(); |