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;
|
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)
|
bool ReferencesResolver::visit(Identifier const& _identifier)
|
||||||
{
|
{
|
||||||
auto declarations = m_resolver.nameFromCurrentScope(_identifier.name());
|
auto declarations = m_resolver.nameFromCurrentScope(_identifier.name());
|
||||||
|
@ -57,18 +57,7 @@ public:
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
/// @returns true if no errors during resolving
|
/// @returns true if no errors during resolving
|
||||||
bool resolve(ASTNode& _root)
|
bool resolve(ASTNode& _root);
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
_root.accept(*this);
|
|
||||||
}
|
|
||||||
catch (FatalError const& e)
|
|
||||||
{
|
|
||||||
solAssert(m_errorOccurred, "");
|
|
||||||
}
|
|
||||||
return !m_errorOccurred;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual bool visit(Block const&) override { return m_resolveInsideCode; }
|
virtual bool visit(Block const&) override { return m_resolveInsideCode; }
|
||||||
|
Loading…
Reference in New Issue
Block a user