aboutsummaryrefslogtreecommitdiffstats
path: root/NameAndTypeResolver.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-31 23:50:33 +0800
committerChristian <c@ethdev.com>2015-01-31 23:50:33 +0800
commit4e440b6e5da8cb1122342377156f3706300f98c7 (patch)
treea43d94498131cc0e5846f013f3e01023a67dce39 /NameAndTypeResolver.cpp
parent6c8b5cabdc9e3f48d95e945d093a480c2ab5032e (diff)
downloaddexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar.gz
dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.tar.zst
dexon-solidity-4e440b6e5da8cb1122342377156f3706300f98c7.zip
Fix scoping of event arguments.
Diffstat (limited to 'NameAndTypeResolver.cpp')
-rw-r--r--NameAndTypeResolver.cpp7
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;