aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface
diff options
context:
space:
mode:
authordjuju <julfaber@gmail.com>2017-04-29 00:46:27 +0800
committerdjuju <julfaber@gmail.com>2017-04-29 00:46:27 +0800
commite9954eb325a6e7f50327448918043e6ef74941cb (patch)
tree8e6031bd9ed7df28c7a7cbc22dfb6c966c1935eb /libsolidity/interface
parentf33614e1f7c85126b8f1a6d007f5824f6dce237d (diff)
downloaddexon-solidity-e9954eb325a6e7f50327448918043e6ef74941cb.tar.gz
dexon-solidity-e9954eb325a6e7f50327448918043e6ef74941cb.tar.zst
dexon-solidity-e9954eb325a6e7f50327448918043e6ef74941cb.zip
conditional reset of compilerState-Enum
Diffstat (limited to 'libsolidity/interface')
-rw-r--r--libsolidity/interface/CompilerStack.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp
index 79855060..9c9c9614 100644
--- a/libsolidity/interface/CompilerStack.cpp
+++ b/libsolidity/interface/CompilerStack.cpp
@@ -80,8 +80,11 @@ void CompilerStack::setRemappings(vector<string> const& _remappings)
void CompilerStack::reset(bool _keepSources)
{
if (_keepSources)
+ {
+ m_stackState = SourcesSet;
for (auto sourcePair: m_sources)
sourcePair.second.reset();
+ }
else
{
m_sources.clear();
@@ -161,7 +164,7 @@ bool CompilerStack::parse()
bool CompilerStack::analyze()
{
- if (m_stackState < ParsingSuccessful)
+ if (m_stackState != ParsingSuccessful)
return false;
resolveImports();