Minor: remove warnings and refactoring
This commit is contained in:
@@ -1070,16 +1070,14 @@ public class KotlinExpressionParsing extends AbstractKotlinParsing {
|
||||
}
|
||||
}
|
||||
|
||||
if (!paramsFound) {
|
||||
if (preferBlock) {
|
||||
literal.drop();
|
||||
parseStatements();
|
||||
expect(RBRACE, "Expecting '}'");
|
||||
literalExpression.done(BLOCK);
|
||||
myBuilder.restoreNewlinesState();
|
||||
if (!paramsFound && preferBlock) {
|
||||
literal.drop();
|
||||
parseStatements();
|
||||
expect(RBRACE, "Expecting '}'");
|
||||
literalExpression.done(BLOCK);
|
||||
myBuilder.restoreNewlinesState();
|
||||
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
PsiBuilder.Marker body = mark();
|
||||
|
||||
@@ -35,7 +35,7 @@ public class KtBlockExpression extends KtExpressionImpl implements KtStatementEx
|
||||
|
||||
@Override
|
||||
public boolean shouldChangeModificationCount(PsiElement place) {
|
||||
// To prent OutOfBlockModification increase from JavaCodeBlockModificationListener
|
||||
// To prevent OutOfBlockModification increase from JavaCodeBlockModificationListener
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user