aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-10-26 19:08:00 +0800
committerYoichi Hirai <i@yoichihirai.com>2017-01-03 00:59:20 +0800
commit6a312233fcbaf9b7ec7b7088719a3be724ea228b (patch)
tree0004f69c924b9d003eb286089e88a9796bc7fc61 /libsolidity/ast
parent96ca706353f94b60c7e356f11aa7466a15eca33d (diff)
downloaddexon-solidity-6a312233fcbaf9b7ec7b7088719a3be724ea228b.tar.gz
dexon-solidity-6a312233fcbaf9b7ec7b7088719a3be724ea228b.tar.zst
dexon-solidity-6a312233fcbaf9b7ec7b7088719a3be724ea228b.zip
ast, codegen: enable accessing events through contract names.
Fixes #1286
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/AST.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp
index 3cd1dfbe..78d8949c 100644
--- a/libsolidity/ast/AST.cpp
+++ b/libsolidity/ast/AST.cpp
@@ -217,6 +217,9 @@ vector<Declaration const*> const& ContractDefinition::inheritableMembers() const
for (EnumDefinition const* e: definedEnums())
addInheritableMember(e);
+
+ for (EventDefinition const* e: events())
+ addInheritableMember(e);
}
return *m_inheritableMembers;
}