New J2K: Break line after class def
This commit is contained in:
committed by
Ilya Kirillov
parent
049bb4a8af
commit
2e7940149f
@@ -100,13 +100,16 @@ class NewCodeBuilder {
|
||||
builder.append(" ")
|
||||
printer.print(classKindString(klass.classKind))
|
||||
builder.append(" ")
|
||||
printer.print(klass.name.value)
|
||||
printer.printWithNoIndent(klass.name.value)
|
||||
if (klass.declarationList.isNotEmpty()) {
|
||||
printer.println(" {")
|
||||
printer.pushIndent()
|
||||
klass.declarationList.forEach { it.accept(this) }
|
||||
printer.popIndent()
|
||||
printer.println("}")
|
||||
|
||||
} else {
|
||||
printer.println()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user