Minor reindent optimizations

This commit is contained in:
Ilya Gorbunov
2015-10-09 19:00:18 +03:00
parent af0a59dd02
commit 96b33a8bfd
2 changed files with 17 additions and 12 deletions
@@ -399,7 +399,7 @@ class GenericFunction(val signature: String, val keyword: String = "fun") {
val indent: Int = body.takeWhile { it == ' ' }.length()
builder.append('\n')
StringReader(body).forEachLine {
body.lineSequence().forEach {
var count = indent
val line = it.dropWhile { count-- > 0 && it == ' ' }.renderType()
if (!line.isEmpty()) {