mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2198 from ethereum/conditionalCompilerStateReset
conditional reset of compilerState-Enum
This commit is contained in:
commit
f42a9a9408
@ -80,8 +80,11 @@ void CompilerStack::setRemappings(vector<string> const& _remappings)
|
|||||||
void CompilerStack::reset(bool _keepSources)
|
void CompilerStack::reset(bool _keepSources)
|
||||||
{
|
{
|
||||||
if (_keepSources)
|
if (_keepSources)
|
||||||
|
{
|
||||||
|
m_stackState = SourcesSet;
|
||||||
for (auto sourcePair: m_sources)
|
for (auto sourcePair: m_sources)
|
||||||
sourcePair.second.reset();
|
sourcePair.second.reset();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_sources.clear();
|
m_sources.clear();
|
||||||
@ -161,7 +164,7 @@ bool CompilerStack::parse()
|
|||||||
|
|
||||||
bool CompilerStack::analyze()
|
bool CompilerStack::analyze()
|
||||||
{
|
{
|
||||||
if (m_stackState < ParsingSuccessful)
|
if (m_stackState != ParsingSuccessful)
|
||||||
return false;
|
return false;
|
||||||
resolveImports();
|
resolveImports();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user