aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-09 19:50:53 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-09 19:50:53 +0800
commit3b41cd3c23d346c7b7367bd80fd6381bbb329587 (patch)
tree0b2b8a3f6737515997ec4576b00a24639d5b53b9 /libsolidity
parent81887bc7ebb0ab55811fb9cfd5607af79a6fdaa8 (diff)
downloaddexon-solidity-3b41cd3c23d346c7b7367bd80fd6381bbb329587.tar.gz
dexon-solidity-3b41cd3c23d346c7b7367bd80fd6381bbb329587.tar.zst
dexon-solidity-3b41cd3c23d346c7b7367bd80fd6381bbb329587.zip
Rename Token::Const to Token::Constant
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/parsing/Parser.cpp4
-rw-r--r--libsolidity/parsing/Token.h2
2 files changed, 3 insertions, 3 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))
{
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h
index d412b3f0..468cbcb7 100644
--- a/libsolidity/parsing/Token.h
+++ b/libsolidity/parsing/Token.h
@@ -143,7 +143,7 @@ namespace solidity
K(As, "as", 0) \
K(Assembly, "assembly", 0) \
K(Break, "break", 0) \
- K(Const, "constant", 0) \
+ K(Constant, "constant", 0) \
K(Continue, "continue", 0) \
K(Contract, "contract", 0) \
K(Do, "do", 0) \