diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-09 21:35:31 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-09 21:35:31 +0800 |
commit | 148a7cb3e1bcd4648824285e4f6dc9800d3f6de3 (patch) | |
tree | 12eae61e00be2356bd278ae127ab29f050dbb509 /Parser.cpp | |
parent | 7c0ae1a82f28f3a3679ee7160d0080eac9ca5b9c (diff) | |
download | dexon-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.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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) |