aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-11-04 21:49:54 +0800
committerLianaHus <liana@ethdev.com>2015-11-07 01:45:06 +0800
commit79177de80b83eeecc41f49690c0e70485d75937f (patch)
tree0e2b1c11a76777167aff5bc388d943232eca11f1 /libsolidity/analysis
parent3f726825fbb943f4e3a6390fd2cafc11eb127beb (diff)
downloaddexon-solidity-79177de80b83eeecc41f49690c0e70485d75937f.tar.gz
dexon-solidity-79177de80b83eeecc41f49690c0e70485d75937f.tar.zst
dexon-solidity-79177de80b83eeecc41f49690c0e70485d75937f.zip
fixed return valu for resolver
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/NameAndTypeResolver.cpp8
-rw-r--r--libsolidity/analysis/ReferencesResolver.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/analysis/NameAndTypeResolver.cpp b/libsolidity/analysis/NameAndTypeResolver.cpp
index 92ba25c6..cf03c808 100644
--- a/libsolidity/analysis/NameAndTypeResolver.cpp
+++ b/libsolidity/analysis/NameAndTypeResolver.cpp
@@ -140,13 +140,13 @@ bool NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract)
if (!resolver.resolve(*function))
success = false;
}
-// if (!result)
-// return false;
+ if (!success)
+ return false;
}
catch (FatalError const& _e)
{
-// if (m_errors.empty())
-// throw; // Something is weird here, rather throw again.
+ if (m_errors.empty())
+ throw; // Something is weird here, rather throw again.
return false;
}
return true;
diff --git a/libsolidity/analysis/ReferencesResolver.h b/libsolidity/analysis/ReferencesResolver.h
index 54b34a36..34e68054 100644
--- a/libsolidity/analysis/ReferencesResolver.h
+++ b/libsolidity/analysis/ReferencesResolver.h
@@ -60,7 +60,7 @@ public:
bool resolve(ASTNode& _root)
{
_root.accept(*this);
- return true;//m_errors.empty();
+ return Error::containsOnlyWarnings(m_errors);
}
private: