aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-09 21:35:31 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-09 21:35:31 +0800
commit148a7cb3e1bcd4648824285e4f6dc9800d3f6de3 (patch)
tree12eae61e00be2356bd278ae127ab29f050dbb509 /Parser.cpp
parent7c0ae1a82f28f3a3679ee7160d0080eac9ca5b9c (diff)
downloaddexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.tar
dexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.tar.gz
dexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.tar.bz2
dexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.tar.lz
dexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.tar.xz
dexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.tar.zst
dexon-solidity-148a7cb3e1bcd4648824285e4f6dc9800d3f6de3.zip
ExpressionCompiler's enums to CamelCase
Diffstat (limited to 'Parser.cpp')
-rw-r--r--Parser.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Parser.cpp b/Parser.cpp
index 1fa8fbe8..f076df87 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -180,13 +180,13 @@ ASTPointer<InheritanceSpecifier> Parser::parseInheritanceSpecifier()
Declaration::Visibility Parser::parseVisibilitySpecifier(Token::Value _token)
{
- Declaration::Visibility visibility(Declaration::Visibility::DEFAULT);
+ Declaration::Visibility visibility(Declaration::Visibility::Default);
if (_token == Token::Public)
- visibility = Declaration::Visibility::PUBLIC;
+ visibility = Declaration::Visibility::Public;
else if (_token == Token::Protected)
- visibility = Declaration::Visibility::PROTECTED;
+ visibility = Declaration::Visibility::Protected;
else if (_token == Token::Private)
- visibility = Declaration::Visibility::PRIVATE;
+ visibility = Declaration::Visibility::Private;
else
solAssert(false, "Invalid visibility specifier.");
m_scanner->next();
@@ -208,7 +208,7 @@ ASTPointer<FunctionDefinition> Parser::parseFunctionDefinition(ASTString const*
name = expectIdentifierToken();
ASTPointer<ParameterList> parameters(parseParameterList());
bool isDeclaredConst = false;
- Declaration::Visibility visibility(Declaration::Visibility::DEFAULT);
+ Declaration::Visibility visibility(Declaration::Visibility::Default);
vector<ASTPointer<ModifierInvocation>> modifiers;
while (true)
{
@@ -222,7 +222,7 @@ ASTPointer<FunctionDefinition> Parser::parseFunctionDefinition(ASTString const*
modifiers.push_back(parseModifierInvocation());
else if (Token::isVisibilitySpecifier(token))
{
- if (visibility != Declaration::Visibility::DEFAULT)
+ if (visibility != Declaration::Visibility::Default)
BOOST_THROW_EXCEPTION(createParserError("Multiple visibility specifiers."));
visibility = parseVisibilitySpecifier(token);
}
@@ -272,7 +272,7 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(VarDeclParserOp
bool isIndexed = false;
ASTPointer<ASTString> identifier;
Token::Value token = m_scanner->getCurrentToken();
- Declaration::Visibility visibility(Declaration::Visibility::DEFAULT);
+ Declaration::Visibility visibility(Declaration::Visibility::Default);
if (_options.isStateVariable && Token::isVisibilitySpecifier(token))
visibility = parseVisibilitySpecifier(token);
if (_options.allowIndexed && token == Token::Indexed)