aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-14 00:34:46 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-14 06:16:14 +0800
commitb20ce4451bb4c2b64b112b8654b36502ae654a24 (patch)
treed9ecfcbf2a386e546f25594f377ceb669bd22997 /AST.cpp
parentfb4ff4af286f66dab3fde5bf33815c407f56b2db (diff)
downloaddexon-solidity-b20ce4451bb4c2b64b112b8654b36502ae654a24.tar.gz
dexon-solidity-b20ce4451bb4c2b64b112b8654b36502ae654a24.tar.zst
dexon-solidity-b20ce4451bb4c2b64b112b8654b36502ae654a24.zip
Typo in 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 2baf9dae..9d7d2169 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -206,7 +206,7 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn
return *m_interfaceFunctionList;
}
-TypePointer EnumvValue::getType(ContractDefinition const*) const
+TypePointer EnumValue::getType(ContractDefinition const*) const
{
EnumDefinition const* parentDef = dynamic_cast<EnumDefinition const*>(getScope());
return make_shared<EnumType>(*parentDef);
@@ -263,8 +263,8 @@ void StructDefinition::checkRecursion() const
void EnumDefinition::checkValidityOfMembers() const
{
- vector<ASTPointer<EnumvValue>> members(getMembers());
- auto compareDecls = [](ASTPointer<EnumvValue> a, ASTPointer<EnumvValue> b)
+ vector<ASTPointer<EnumValue>> members(getMembers());
+ auto compareDecls = [](ASTPointer<EnumValue> a, ASTPointer<EnumValue> 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<EnumvValue> const& decl: m_members)
+ for (ASTPointer<EnumValue> const& decl: m_members)
{
if (decl->getName() == _member)
return index;