aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/ParserBase.h
diff options
context:
space:
mode:
authorChristian Parpart <christian@parpart.family>2018-10-23 07:50:15 +0800
committerGitHub <noreply@github.com>2018-10-23 07:50:15 +0800
commita2f5087d13274d6832669a39694ee5a3bf68f878 (patch)
tree4b6b8b3816a0a1620e73a30de687ff3557a10098 /libsolidity/parsing/ParserBase.h
parentc13b5280c1b44f18a2a1fb61ef5556e91c5678e7 (diff)
parentf112377dd44e8281bff092639bb546ec8a6a39ac (diff)
downloaddexon-solidity-a2f5087d13274d6832669a39694ee5a3bf68f878.tar
dexon-solidity-a2f5087d13274d6832669a39694ee5a3bf68f878.tar.gz
dexon-solidity-a2f5087d13274d6832669a39694ee5a3bf68f878.tar.bz2
dexon-solidity-a2f5087d13274d6832669a39694ee5a3bf68f878.tar.lz
dexon-solidity-a2f5087d13274d6832669a39694ee5a3bf68f878.tar.xz
dexon-solidity-a2f5087d13274d6832669a39694ee5a3bf68f878.tar.zst
dexon-solidity-a2f5087d13274d6832669a39694ee5a3bf68f878.zip
Merge pull request #5286 from ethereum/refactor-token-as-enum-class
refactor `libsolidity::Token` into a strongly typed enum
Diffstat (limited to 'libsolidity/parsing/ParserBase.h')
-rw-r--r--libsolidity/parsing/ParserBase.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/parsing/ParserBase.h b/libsolidity/parsing/ParserBase.h
index b28e1b1b..e01f37d8 100644
--- a/libsolidity/parsing/ParserBase.h
+++ b/libsolidity/parsing/ParserBase.h
@@ -63,11 +63,11 @@ protected:
///@{
///@name Helper functions
/// If current token value is not _value, throw exception otherwise advance token.
- void expectToken(Token::Value _value, bool _advance = true);
- Token::Value currentToken() const;
- Token::Value peekNextToken() const;
+ void expectToken(Token _value, bool _advance = true);
+ Token currentToken() const;
+ Token peekNextToken() const;
std::string currentLiteral() const;
- Token::Value advance();
+ Token advance();
///@}
/// Increases the recursion depth and throws an exception if it is too deep.