aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:03:32 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:16:14 +0800
commitfbd39323afbe78a8693bfc2c8c3ffa0f071a2f2a (patch)
treeab7ab61cba779a4422166958d2519337913f6790 /ExpressionCompiler.cpp
parent1e4c93d5d3677c60bd82b9f5592158dc0ad5607a (diff)
downloaddexon-solidity-fbd39323afbe78a8693bfc2c8c3ffa0f071a2f2a.tar.gz
dexon-solidity-fbd39323afbe78a8693bfc2c8c3ffa0f071a2f2a.tar.zst
dexon-solidity-fbd39323afbe78a8693bfc2c8c3ffa0f071a2f2a.zip
Moving getMemberValue from EnumDefinition to EnumType
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 00c2dafd..63324fe5 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -492,8 +492,7 @@ void ExpressionCompiler::endVisit(MemberAccess const& _memberAccess)
case Type::Category::Enum:
{
EnumType const& type = dynamic_cast<EnumType const&>(*_memberAccess.getExpression().getType());
- EnumDefinition const& enumDef = type.getEnumDefinition();
- m_context << enumDef.getMemberValue(_memberAccess.getMemberName());
+ m_context << type.getMemberValue(_memberAccess.getMemberName());
break;
}
case Type::Category::TypeType:
@@ -516,8 +515,7 @@ void ExpressionCompiler::endVisit(MemberAccess const& _memberAccess)
}
else if ((enumType = dynamic_cast<EnumType const*>(type.getActualType().get())))
{
- EnumDefinition const &enumDef = enumType->getEnumDefinition();
- m_context << enumDef.getMemberValue(_memberAccess.getMemberName());
+ m_context << enumType->getMemberValue(_memberAccess.getMemberName());
return;
}