aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-11 23:37:46 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:16:14 +0800
commitc3a9ae0b0657861c8cc27f60358b0bfe99ed05ae (patch)
tree695fbc92111b1853fdee6500c92e55555666759f /AST.cpp
parent86e1d671cc4ed9b89576c80e16e58a8019115068 (diff)
downloaddexon-solidity-c3a9ae0b0657861c8cc27f60358b0bfe99ed05ae.tar.gz
dexon-solidity-c3a9ae0b0657861c8cc27f60358b0bfe99ed05ae.tar.zst
dexon-solidity-c3a9ae0b0657861c8cc27f60358b0bfe99ed05ae.zip
Introducing EnumType and some Parser tests
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/AST.cpp b/AST.cpp
index 95014fa1..488bd4cd 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -208,7 +208,7 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn
TypePointer EnumDeclaration::getType(ContractDefinition const*) const
{
- // LTODO
+ // LTODO: How to get the parent EnumDefinition and return its type here?
return nullptr;
}
@@ -274,9 +274,7 @@ void EnumDefinition::checkValidityOfMembers() const
TypePointer EnumDefinition::getType(ContractDefinition const*) const
{
- //LTODO:
- return nullptr;
- // return make_shared<TypeType>(make_shared<EnumType>(*this));
+ return make_shared<TypeType>(make_shared<EnumType>(*this));
}
TypePointer FunctionDefinition::getType(ContractDefinition const*) const