aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-25 23:02:05 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-25 23:02:05 +0800
commitda56bde58f6099b199a109f528045953a5fe1bab (patch)
tree7013418f28e8ccd68c00d4888adf2f854f884412 /libsolidity/parsing
parent51d6141f7ecec6bb09f6c12711017eb51bd9c22c (diff)
downloaddexon-solidity-da56bde58f6099b199a109f528045953a5fe1bab.tar.gz
dexon-solidity-da56bde58f6099b199a109f528045953a5fe1bab.tar.zst
dexon-solidity-da56bde58f6099b199a109f528045953a5fe1bab.zip
Move the break in switch for readability
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r--libsolidity/parsing/Parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index 8429bf79..4fc8fd13 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -1263,15 +1263,15 @@ ASTPointer<Expression> Parser::parseLeftHandSideExpression(
nodeFactory.markEndPosition();
expectToken(Token::RBrack);
expression = nodeFactory.createNode<IndexAccess>(expression, index);
+ break;
}
- break;
case Token::Period:
{
m_scanner->next();
nodeFactory.markEndPosition();
expression = nodeFactory.createNode<MemberAccess>(expression, expectIdentifierToken());
+ break;
}
- break;
case Token::LParen:
{
m_scanner->next();
@@ -1281,8 +1281,8 @@ ASTPointer<Expression> Parser::parseLeftHandSideExpression(
nodeFactory.markEndPosition();
expectToken(Token::RParen);
expression = nodeFactory.createNode<FunctionCall>(expression, arguments, names);
+ break;
}
- break;
default:
return expression;
}