aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-24 01:22:30 +0800
committerChristian <c@ethdev.com>2014-10-24 03:37:57 +0800
commit094ee44f721054518ff384aef7cde1afe649636d (patch)
tree4b6935c867fd01c70ea8385778c2017067ec4dd6 /AST.h
parent781d7fd5149f6e24d60cd0327841ca9f2fca23af (diff)
downloaddexon-solidity-094ee44f721054518ff384aef7cde1afe649636d.tar.gz
dexon-solidity-094ee44f721054518ff384aef7cde1afe649636d.tar.zst
dexon-solidity-094ee44f721054518ff384aef7cde1afe649636d.zip
Use boost errinfo.
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;
};