aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-14 00:32:34 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:16:14 +0800
commitfb4ff4af286f66dab3fde5bf33815c407f56b2db (patch)
tree53cd2b4ef183d5d8e4ec2412b6df9e2abba0fa30 /AST.cpp
parent52808f67fa608b62d6d9ee81b266edb183e13d48 (diff)
downloaddexon-solidity-fb4ff4af286f66dab3fde5bf33815c407f56b2db.tar.gz
dexon-solidity-fb4ff4af286f66dab3fde5bf33815c407f56b2db.tar.zst
dexon-solidity-fb4ff4af286f66dab3fde5bf33815c407f56b2db.zip
implement getType() for EnumValue
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AST.cpp b/AST.cpp
index cdc1f6cb..2baf9dae 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -208,8 +208,8 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn
TypePointer EnumvValue::getType(ContractDefinition const*) const
{
- // LTODO: How to get the parent EnumDefinition and return its type here?
- return nullptr;
+ EnumDefinition const* parentDef = dynamic_cast<EnumDefinition const*>(getScope());
+ return make_shared<EnumType>(*parentDef);
}
void InheritanceSpecifier::checkTypeRequirements()