aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-14 00:22:53 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:16:14 +0800
commit52808f67fa608b62d6d9ee81b266edb183e13d48 (patch)
treee03287f416a94d956a1f0d99cafe0f32c92075b0 /AST.cpp
parentb1b6b63d6be34156729aa12e55e6bed0827967be (diff)
downloaddexon-solidity-52808f67fa608b62d6d9ee81b266edb183e13d48.tar
dexon-solidity-52808f67fa608b62d6d9ee81b266edb183e13d48.tar.gz
dexon-solidity-52808f67fa608b62d6d9ee81b266edb183e13d48.tar.bz2
dexon-solidity-52808f67fa608b62d6d9ee81b266edb183e13d48.tar.lz
dexon-solidity-52808f67fa608b62d6d9ee81b266edb183e13d48.tar.xz
dexon-solidity-52808f67fa608b62d6d9ee81b266edb183e13d48.tar.zst
dexon-solidity-52808f67fa608b62d6d9ee81b266edb183e13d48.zip
EnumDeclaration -> EnumValue
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/AST.cpp b/AST.cpp
index 65dc57e5..cdc1f6cb 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -206,7 +206,7 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn
return *m_interfaceFunctionList;
}
-TypePointer EnumDeclaration::getType(ContractDefinition const*) const
+TypePointer EnumvValue::getType(ContractDefinition const*) const
{
// LTODO: How to get the parent EnumDefinition and return its type here?
return nullptr;
@@ -263,8 +263,8 @@ void StructDefinition::checkRecursion() const
void EnumDefinition::checkValidityOfMembers() const
{
- vector<ASTPointer<EnumDeclaration>> members(getMembers());
- auto compareDecls = [](ASTPointer<EnumDeclaration> a, ASTPointer<EnumDeclaration> b)
+ vector<ASTPointer<EnumvValue>> members(getMembers());
+ auto compareDecls = [](ASTPointer<EnumvValue> a, ASTPointer<EnumvValue> b)
{
return a->getName() < b->getName();
};
@@ -283,7 +283,7 @@ TypePointer EnumDefinition::getType(ContractDefinition const*) const
unsigned int EnumDefinition::getMemberValue(ASTString const& _member) const
{
unsigned int index = 0;
- for (ASTPointer<EnumDeclaration> const& decl: m_members)
+ for (ASTPointer<EnumvValue> const& decl: m_members)
{
if (decl->getName() == _member)
return index;