aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/AST.h b/AST.h
index d5e1e066..5679ed83 100644
--- a/AST.h
+++ b/AST.h
@@ -22,16 +22,16 @@
#pragma once
-#include <boost/noncopyable.hpp>
#include <string>
#include <vector>
#include <memory>
-
+#include <boost/noncopyable.hpp>
#include <libsolidity/ASTForward.h>
#include <libsolidity/BaseTypes.h>
#include <libsolidity/Token.h>
#include <libsolidity/Types.h>
+#include <libsolidity/Exceptions.h>
namespace dev
{
@@ -57,6 +57,11 @@ public:
Location const& getLocation() const { return m_location; }
+protected:
+ /// Creates a @ref TypeError exception and decorates it with the current location and
+ /// the given description
+ TypeError createTypeError(std::string const& _description);
+
private:
Location m_location;
};