Formatting rule: new line before when entry

This commit is contained in:
Mikhail Glukhikh
2016-01-13 13:36:17 +03:00
parent b7790177e0
commit e54471abbc
2 changed files with 20 additions and 7 deletions
@@ -50,8 +50,7 @@ class AddWhenRemainingBranchesFix(expression: KtWhenExpression) : KotlinQuickFix
for (case in necessaryCases) {
val entry = psiFactory.createWhenEntry("${case.branchConditionText} -> TODO()")
val insertedBranch = element.addBefore(entry, whenCloseBrace)
element.addAfter(psiFactory.createNewLine(), insertedBranch)
element.addBefore(entry, whenCloseBrace)
}
}