diff options
author | Christian <c@ethdev.com> | 2015-01-29 21:35:28 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-30 04:26:11 +0800 |
commit | 4a6ed84386ed7bc3abd2b4cf2441b29a5af38816 (patch) | |
tree | a4428b3bd31d3b05383b61e060cd768c4a7604db /NameAndTypeResolver.cpp | |
parent | 3701543ae8dd8ffbfd58e5648d45699468f10a55 (diff) | |
download | dexon-solidity-4a6ed84386ed7bc3abd2b4cf2441b29a5af38816.tar.gz dexon-solidity-4a6ed84386ed7bc3abd2b4cf2441b29a5af38816.tar.zst dexon-solidity-4a6ed84386ed7bc3abd2b4cf2441b29a5af38816.zip |
Parsing of events.
Diffstat (limited to 'NameAndTypeResolver.cpp')
-rw-r--r-- | NameAndTypeResolver.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp index 43201fe1..75df637c 100644 --- a/NameAndTypeResolver.cpp +++ b/NameAndTypeResolver.cpp @@ -60,6 +60,8 @@ void NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract) ReferencesResolver resolver(*structDef, *this, &_contract, nullptr); for (ASTPointer<VariableDeclaration> const& variable: _contract.getStateVariables()) ReferencesResolver resolver(*variable, *this, &_contract, nullptr); + for (ASTPointer<EventDefinition> const& event: _contract.getEvents()) + ReferencesResolver resolver(*event, *this, &_contract, nullptr); for (ASTPointer<ModifierDefinition> const& modifier: _contract.getFunctionModifiers()) { m_currentScope = &m_scopes[modifier.get()]; @@ -259,6 +261,12 @@ bool DeclarationRegistrationHelper::visit(VariableDeclaration& _declaration) return true; } +bool DeclarationRegistrationHelper::visit(EventDefinition& _event) +{ + registerDeclaration(_event, false); + return true; +} + void DeclarationRegistrationHelper::enterNewSubScope(Declaration const& _declaration) { map<ASTNode const*, DeclarationContainer>::iterator iter; |