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.cpp | |
parent | 6c8b5cabdc9e3f48d95e945d093a480c2ab5032e (diff) | |
download | dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar.gz dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar.bz2 dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar.lz dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar.xz dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar.zst dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.zip |
Fix scoping of event arguments.
Diffstat (limited to 'NameAndTypeResolver.cpp')
-rw-r--r-- | NameAndTypeResolver.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp index 75df637c..7dc42bc6 100644 --- a/NameAndTypeResolver.cpp +++ b/NameAndTypeResolver.cpp @@ -263,10 +263,15 @@ bool DeclarationRegistrationHelper::visit(VariableDeclaration& _declaration) bool DeclarationRegistrationHelper::visit(EventDefinition& _event) { - registerDeclaration(_event, false); + registerDeclaration(_event, true); return true; } +void DeclarationRegistrationHelper::endVisit(EventDefinition&) +{ + closeCurrentScope(); +} + void DeclarationRegistrationHelper::enterNewSubScope(Declaration const& _declaration) { map<ASTNode const*, DeclarationContainer>::iterator iter; |