mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Introduce namespace langutil in liblangutil directory.
Also:
- Use {}-style list initialisation for SourceLocation construction
- Introduce new system includes
- Changes the API of the Scanner to take source as value (with move) as opposed to as a reference
This commit is contained in:
committed by
Alex Beregszaszi
parent
80371e2d25
commit
d67322a186
@@ -25,19 +25,22 @@
|
||||
#include <string>
|
||||
#include <libsolidity/ast/ASTAnnotations.h>
|
||||
|
||||
namespace langutil
|
||||
{
|
||||
class ErrorReporter;
|
||||
}
|
||||
|
||||
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, ErrorReporter& _errorReporter);
|
||||
bool parse(std::string const& _docString, langutil::ErrorReporter& _errorReporter);
|
||||
|
||||
std::multimap<std::string, DocTag> const& tags() const { return m_docTags; }
|
||||
|
||||
@@ -63,7 +66,7 @@ private:
|
||||
/// Mapping tag name -> content.
|
||||
std::multimap<std::string, DocTag> m_docTags;
|
||||
DocTag* m_lastTag = nullptr;
|
||||
ErrorReporter* m_errorReporter = nullptr;
|
||||
langutil::ErrorReporter* m_errorReporter = nullptr;
|
||||
bool m_errorsOccurred = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user