diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-11 23:37:46 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-14 06:16:14 +0800 |
commit | c3a9ae0b0657861c8cc27f60358b0bfe99ed05ae (patch) | |
tree | 695fbc92111b1853fdee6500c92e55555666759f /AST.cpp | |
parent | 86e1d671cc4ed9b89576c80e16e58a8019115068 (diff) | |
download | dexon-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.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |