New J2K: Fix switch statement cases printing
This commit is contained in:
committed by
Ilya Kirillov
parent
3ea1a937c0
commit
42dc96d9a8
@@ -708,7 +708,9 @@ class NewCodeBuilder {
|
|||||||
ktWhenStatement.expression.accept(this)
|
ktWhenStatement.expression.accept(this)
|
||||||
printer.printWithNoIndent(")")
|
printer.printWithNoIndent(")")
|
||||||
printer.block(multiline = true) {
|
printer.block(multiline = true) {
|
||||||
ktWhenStatement.cases.forEach { it.accept(this) }
|
renderList(ktWhenStatement.cases, { printer.printlnWithNoIndent() }) {
|
||||||
|
it.accept(this)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user