Minor: code clean up

This commit is contained in:
Nikolay Krasko
2014-04-29 17:31:09 +04:00
parent 650a3533f1
commit ad0e6dadf4
@@ -498,10 +498,8 @@ public class JetExpressionParsing extends AbstractJetParsing {
*/ */
protected boolean parseCallWithClosure() { protected boolean parseCallWithClosure() {
boolean success = false; boolean success = false;
// while (!myBuilder.newlineBeforeCurrentToken()
// && (at(LBRACE) while (at(LBRACE) || atSet(LABELS) && lookahead(1) == LBRACE) {
while ((at(LBRACE)
|| atSet(LABELS) && lookahead(1) == LBRACE)) {
if (!at(LBRACE)) { if (!at(LBRACE)) {
assert _atSet(LABELS); assert _atSet(LABELS);
parsePrefixExpression(); parsePrefixExpression();
@@ -511,6 +509,7 @@ public class JetExpressionParsing extends AbstractJetParsing {
} }
success = true; success = true;
} }
return success; return success;
} }