aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Parser.cpp
diff options
context:
space:
mode:
authorChase McDermott <chasemcd1745@tamu.edu>2018-08-18 07:09:31 +0800
committerChase McDermott <chasemcd1745@tamu.edu>2018-08-18 07:15:22 +0800
commit551e0bf47cd0a1d1cb24a878f2309fd9f3253d00 (patch)
treec27807217402b60b6a9660d92f6db8d1de03cd2b /libsolidity/parsing/Parser.cpp
parent410d288dfc2e08c42df58c7e01ad5c332ce92727 (diff)
downloaddexon-solidity-551e0bf47cd0a1d1cb24a878f2309fd9f3253d00.tar.gz
dexon-solidity-551e0bf47cd0a1d1cb24a878f2309fd9f3253d00.tar.zst
dexon-solidity-551e0bf47cd0a1d1cb24a878f2309fd9f3253d00.zip
Rename Location::Default to Location::Unspecified.
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 0bee2a91..bfa0ad24 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -564,7 +564,7 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(
bool isIndexed = false;
bool isDeclaredConst = false;
Declaration::Visibility visibility(Declaration::Visibility::Default);
- VariableDeclaration::Location location = VariableDeclaration::Location::Default;
+ VariableDeclaration::Location location = VariableDeclaration::Location::Unspecified;
ASTPointer<ASTString> identifier;
while (true)
@@ -592,7 +592,7 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(
isDeclaredConst = true;
else if (_options.allowLocationSpecifier && Token::isLocationSpecifier(token))
{
- if (location != VariableDeclaration::Location::Default)
+ if (location != VariableDeclaration::Location::Unspecified)
parserError(string("Location already specified."));
else if (!type)
parserError(string("Location specifier needs explicit type name."));