mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
conditional reset of compilerState-Enum
This commit is contained in:
parent
f33614e1f7
commit
e9954eb325
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user