aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis/ReferencesResolver.h
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-11-07 01:43:17 +0800
committerLianaHus <liana@ethdev.com>2015-11-07 01:45:06 +0800
commit63060fc1f0f2f27ab4ad853c7295c2cfba373b83 (patch)
tree495d30b41f8fa1f49478d9ff19e0ef61ac0313e7 /libsolidity/analysis/ReferencesResolver.h
parent7eb162c0df52fc6335613f00e9d105fe2a4df7ff (diff)
downloaddexon-solidity-63060fc1f0f2f27ab4ad853c7295c2cfba373b83.tar.gz
dexon-solidity-63060fc1f0f2f27ab4ad853c7295c2cfba373b83.tar.zst
dexon-solidity-63060fc1f0f2f27ab4ad853c7295c2cfba373b83.zip
fixed test framework
Diffstat (limited to 'libsolidity/analysis/ReferencesResolver.h')
-rw-r--r--libsolidity/analysis/ReferencesResolver.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libsolidity/analysis/ReferencesResolver.h b/libsolidity/analysis/ReferencesResolver.h
index 237d01a0..be618f23 100644
--- a/libsolidity/analysis/ReferencesResolver.h
+++ b/libsolidity/analysis/ReferencesResolver.h
@@ -59,7 +59,14 @@ public:
/// @returns true if no errors during resolving
bool resolve(ASTNode& _root)
{
- _root.accept(*this);
+ try
+ {
+ _root.accept(*this);
+ }
+ catch (FatalError const& e)
+ {
+ solAssert(m_errorOccurred, "");
+ }
return !m_errorOccurred;
}