diff options
author | LianaHus <liana@ethdev.com> | 2015-11-07 04:07:42 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-11-07 04:07:42 +0800 |
commit | a15d2bbb524b68a480fd52ac54cc9363a9edfed8 (patch) | |
tree | b067bc33389f724a8dd14d49da0ce8f55baa560e /libsolidity/analysis/ReferencesResolver.cpp | |
parent | da47f9df7b508149f137ebd4d80f6b31e27131d3 (diff) | |
download | dexon-solidity-a15d2bbb524b68a480fd52ac54cc9363a9edfed8.tar.gz dexon-solidity-a15d2bbb524b68a480fd52ac54cc9363a9edfed8.tar.zst dexon-solidity-a15d2bbb524b68a480fd52ac54cc9363a9edfed8.zip |
style fix
Diffstat (limited to 'libsolidity/analysis/ReferencesResolver.cpp')
-rw-r--r-- | libsolidity/analysis/ReferencesResolver.cpp | 13 |
1 files changed, 13 insertions, 0 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()); |