diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-14 06:03:32 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-14 06:16:14 +0800 |
commit | fbd39323afbe78a8693bfc2c8c3ffa0f071a2f2a (patch) | |
tree | ab7ab61cba779a4422166958d2519337913f6790 /AST.cpp | |
parent | 1e4c93d5d3677c60bd82b9f5592158dc0ad5607a (diff) | |
download | dexon-solidity-fbd39323afbe78a8693bfc2c8c3ffa0f071a2f2a.tar.gz dexon-solidity-fbd39323afbe78a8693bfc2c8c3ffa0f071a2f2a.tar.zst dexon-solidity-fbd39323afbe78a8693bfc2c8c3ffa0f071a2f2a.zip |
Moving getMemberValue from EnumDefinition to EnumType
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -280,19 +280,6 @@ TypePointer EnumDefinition::getType(ContractDefinition const*) const return make_shared<TypeType>(make_shared<EnumType>(*this)); } - -unsigned int EnumDefinition::getMemberValue(ASTString const& _member) const -{ - unsigned int index = 0; - for (ASTPointer<EnumValue> const& decl: m_members) - { - if (decl->getName() == _member) - return index; - ++index; - } - BOOST_THROW_EXCEPTION(createTypeError("Requested unknown enum value ." + _member)); -} - TypePointer FunctionDefinition::getType(ContractDefinition const*) const { return make_shared<FunctionType>(*this); |