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