aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-09 21:35:31 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-09 21:35:31 +0800
commit148a7cb3e1bcd4648824285e4f6dc9800d3f6de3 (patch)
tree12eae61e00be2356bd278ae127ab29f050dbb509 /AST.cpp
parent7c0ae1a82f28f3a3679ee7160d0080eac9ca5b9c (diff)
downloaddexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.tar.gz
dexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.tar.zst
dexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.zip
ExpressionCompiler's enums to CamelCase
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 124283d8..d887aa49 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -279,9 +279,9 @@ string FunctionDefinition::getCanonicalSignature() const
Declaration::LValueType VariableDeclaration::getLValueType() const
{
if (dynamic_cast<FunctionDefinition const*>(getScope()) || dynamic_cast<ModifierDefinition const*>(getScope()))
- return Declaration::LValueType::LOCAL;
+ return Declaration::LValueType::Local;
else
- return Declaration::LValueType::STORAGE;
+ return Declaration::LValueType::Storage;
}
TypePointer ModifierDefinition::getType(ContractDefinition const*) const
@@ -577,7 +577,7 @@ void MemberAccess::checkTypeRequirements()
BOOST_THROW_EXCEPTION(createTypeError("Member \"" + *m_memberName + "\" not found or not "
"visible in " + type.toString()));
//@todo later, this will not always be STORAGE
- m_lvalue = type.getCategory() == Type::Category::Struct ? Declaration::LValueType::STORAGE : Declaration::LValueType::NONE;
+ m_lvalue = type.getCategory() == Type::Category::Struct ? Declaration::LValueType::Storage : Declaration::LValueType::None;
}
void IndexAccess::checkTypeRequirements()
@@ -589,7 +589,7 @@ void IndexAccess::checkTypeRequirements()
MappingType const& type = dynamic_cast<MappingType const&>(*m_base->getType());
m_index->expectType(*type.getKeyType());
m_type = type.getValueType();
- m_lvalue = Declaration::LValueType::STORAGE;
+ m_lvalue = Declaration::LValueType::Storage;
}
void Identifier::checkTypeRequirements()