From a15d2bbb524b68a480fd52ac54cc9363a9edfed8 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Fri, 6 Nov 2015 21:07:42 +0100 Subject: style fix --- libsolidity/analysis/ReferencesResolver.cpp | 13 +++++++++++++ libsolidity/analysis/ReferencesResolver.h | 13 +------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/libsolidity/analysis/ReferencesResolver.cpp b/libsolidity/analysis/ReferencesResolver.cpp index 558cae92..95643578 100644 --- a/libsolidity/analysis/ReferencesResolver.cpp +++ b/libsolidity/analysis/ReferencesResolver.cpp @@ -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()); diff --git a/libsolidity/analysis/ReferencesResolver.h b/libsolidity/analysis/ReferencesResolver.h index bde4bbc5..21cb1d35 100644 --- a/libsolidity/analysis/ReferencesResolver.h +++ b/libsolidity/analysis/ReferencesResolver.h @@ -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; } -- cgit