aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Parser.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-09 20:53:53 +0800
committerGitHub <noreply@github.com>2017-08-09 20:53:53 +0800
commita4e39592c71b6b133fd702f7dafef234add4712c (patch)
tree8e33bd5e38492cb40bdbe36b914382bb0e0ed38b /libsolidity/parsing/Parser.cpp
parent4b0ea1fba071a0c874c592912c8eaa5706847487 (diff)
parent3b41cd3c23d346c7b7367bd80fd6381bbb329587 (diff)
downloaddexon-solidity-a4e39592c71b6b133fd702f7dafef234add4712c.tar
dexon-solidity-a4e39592c71b6b133fd702f7dafef234add4712c.tar.gz
dexon-solidity-a4e39592c71b6b133fd702f7dafef234add4712c.tar.bz2
dexon-solidity-a4e39592c71b6b133fd702f7dafef234add4712c.tar.lz
dexon-solidity-a4e39592c71b6b133fd702f7dafef234add4712c.tar.xz
dexon-solidity-a4e39592c71b6b133fd702f7dafef234add4712c.tar.zst
dexon-solidity-a4e39592c71b6b133fd702f7dafef234add4712c.zip
Merge pull request #2719 from ethereum/constant
Rename Token::Const to Token::Constant
Diffstat (limited to 'libsolidity/parsing/Parser.cpp')
-rw-r--r--libsolidity/parsing/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index b98991f3..bc004d14 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -321,7 +321,7 @@ Parser::FunctionHeaderParserResult Parser::parseFunctionHeader(bool _forceEmptyN
while (true)
{
Token::Value token = m_scanner->currentToken();
- if (token == Token::Const)
+ if (token == Token::Constant)
{
if (result.isDeclaredConst)
parserError(string("Multiple \"constant\" specifiers."));
@@ -522,7 +522,7 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(
{
if (_options.allowIndexed && token == Token::Indexed)
isIndexed = true;
- else if (token == Token::Const)
+ else if (token == Token::Constant)
isDeclaredConst = true;
else if (_options.allowLocationSpecifier && Token::isLocationSpecifier(token))
{