style fix

This commit is contained in:
LianaHus 2015-11-06 21:07:42 +01:00
parent da47f9df7b
commit a15d2bbb52
2 changed files with 14 additions and 12 deletions

View File

@ -47,6 +47,19 @@ bool ReferencesResolver::visit(UserDefinedTypeName const& _typeName)
return true;
}
bool ReferencesResolver::resolve(ASTNode& _root)
{
try
{
_root.accept(*this);
}
catch (FatalError const& e)
{
solAssert(m_errorOccurred, "");
}
return !m_errorOccurred;
}
bool ReferencesResolver::visit(Identifier const& _identifier)
{
auto declarations = m_resolver.nameFromCurrentScope(_identifier.name());

View File

@ -57,18 +57,7 @@ public:
{}
/// @returns true if no errors during resolving
bool resolve(ASTNode& _root)
{
try
{
_root.accept(*this);
}
catch (FatalError const& e)
{
solAssert(m_errorOccurred, "");
}
return !m_errorOccurred;
}
bool resolve(ASTNode& _root);
private:
virtual bool visit(Block const&) override { return m_resolveInsideCode; }