aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.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 /Parser.h
parent781d7fd5149f6e24d60cd0327841ca9f2fca23af (diff)
downloaddexon-solidity-094ee44f721054518ff384aef7cde1afe649636d.tar.gz
dexon-solidity-094ee44f721054518ff384aef7cde1afe649636d.tar.zst
dexon-solidity-094ee44f721054518ff384aef7cde1afe649636d.zip
Use boost errinfo.
Diffstat (limited to 'Parser.h')
-rw-r--r--Parser.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Parser.h b/Parser.h
index 7cc41513..14338dc2 100644
--- a/Parser.h
+++ b/Parser.h
@@ -73,9 +73,12 @@ private:
Token::Value expectAssignmentOperator();
ASTPointer<ASTString> expectIdentifierToken();
ASTPointer<ASTString> getLiteralAndAdvance();
- void throwExpectationError(std::string const& _description);
/// @}
+ /// Creates a @ref ParserError exception and annotates it with the current position and the
+ /// given @a _description.
+ ParserError createParserError(std::string const& _description) const;
+
std::shared_ptr<Scanner> m_scanner;
};