mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixed return valu for resolver
This commit is contained in:
parent
3f726825fb
commit
79177de80b
@ -140,13 +140,13 @@ bool NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract)
|
|||||||
if (!resolver.resolve(*function))
|
if (!resolver.resolve(*function))
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
// if (!result)
|
if (!success)
|
||||||
// return false;
|
return false;
|
||||||
}
|
}
|
||||||
catch (FatalError const& _e)
|
catch (FatalError const& _e)
|
||||||
{
|
{
|
||||||
// if (m_errors.empty())
|
if (m_errors.empty())
|
||||||
// throw; // Something is weird here, rather throw again.
|
throw; // Something is weird here, rather throw again.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -60,7 +60,7 @@ public:
|
|||||||
bool resolve(ASTNode& _root)
|
bool resolve(ASTNode& _root)
|
||||||
{
|
{
|
||||||
_root.accept(*this);
|
_root.accept(*this);
|
||||||
return true;//m_errors.empty();
|
return Error::containsOnlyWarnings(m_errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user