diff options
author | chriseth <chris@ethereum.org> | 2017-05-30 22:45:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-30 22:45:36 +0800 |
commit | 254b55728f66ea164e9085700a294ac4837f2029 (patch) | |
tree | a4c464d4d40baaa260f071c1028f347bd287e44d /libsolidity/parsing/DocStringParser.h | |
parent | 0066a08aa8f6c469cde7947ec50ca662a32123a0 (diff) | |
parent | 89b60ffbd4c2dde26fa5e9f1d750729b5c89373e (diff) | |
download | dexon-solidity-254b55728f66ea164e9085700a294ac4837f2029.tar.gz dexon-solidity-254b55728f66ea164e9085700a294ac4837f2029.tar.zst dexon-solidity-254b55728f66ea164e9085700a294ac4837f2029.zip |
Merge pull request #2264 from roadriverrail/refactor_error_log
Refactor error reporting
Diffstat (limited to 'libsolidity/parsing/DocStringParser.h')
-rw-r--r-- | libsolidity/parsing/DocStringParser.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libsolidity/parsing/DocStringParser.h b/libsolidity/parsing/DocStringParser.h index c7f81c55..5f2819cc 100644 --- a/libsolidity/parsing/DocStringParser.h +++ b/libsolidity/parsing/DocStringParser.h @@ -23,7 +23,6 @@ #pragma once #include <string> -#include <libsolidity/interface/Exceptions.h> #include <libsolidity/ast/ASTAnnotations.h> namespace dev @@ -31,12 +30,14 @@ namespace dev namespace solidity { +class ErrorReporter; + class DocStringParser { public: /// Parse the given @a _docString and stores the parsed components internally. /// @returns false on error and appends the error to @a _errors. - bool parse(std::string const& _docString, ErrorList& _errors); + bool parse(std::string const& _docString, ErrorReporter& _errorReporter); std::multimap<std::string, DocTag> const& tags() const { return m_docTags; } @@ -62,7 +63,7 @@ private: /// Mapping tag name -> content. std::multimap<std::string, DocTag> m_docTags; DocTag* m_lastTag = nullptr; - ErrorList* m_errors = nullptr; + ErrorReporter* m_errorReporter = nullptr; bool m_errorsOccurred = false; }; |