Replace appendln with appendLine in project

This commit is contained in:
Alexander Udalov
2020-06-09 21:09:45 +02:00
parent d1c88798df
commit 6e67e1e78d
76 changed files with 405 additions and 402 deletions
@@ -23,28 +23,28 @@ open class ManyImplicitReceiversBenchmark : AbstractSimpleFileBenchmark() {
override fun buildText(): String {
return buildString {
appendln("inline fun <T, R> with(receiver: T, block: T.() -> R): R = block()")
appendLine("inline fun <T, R> with(receiver: T, block: T.() -> R): R = block()")
for (i in 1..size) {
appendln("interface A$i {")
appendln(" fun foo$i()")
appendln("}")
appendln()
appendLine("interface A$i {")
appendLine(" fun foo$i()")
appendLine("}")
appendLine()
}
appendln()
appendLine()
append("fun test(")
append((1..size).joinToString(", ") { "a$it: A$it" })
appendln(" {")
appendLine(" {")
for (i in 1..size) {
appendln("with(a$i) {")
appendLine("with(a$i) {")
}
for (i in 1..size) {
appendln("foo$i()")
appendLine("foo$i()")
}
for (i in 1..size) {
appendln("}")
appendLine("}")
}
appendln("}")
appendLine("}")
}
}
}
@@ -22,7 +22,7 @@ open class PlusAssignOperatorDesugaringBenchmark : AbstractInferenceBenchmark()
}
override fun buildText(): String = buildString {
appendln(
appendLine(
"""
class A {
operator fun <T : Number> plus(other: (Int) -> T): A = this
@@ -30,19 +30,20 @@ open class PlusAssignOperatorDesugaringBenchmark : AbstractInferenceBenchmark()
}
""".trimIndent()
)
appendln("fun test() {")
appendln("var a = A()")
appendLine("fun test() {")
appendLine("var a = A()")
for (i in 1..size) {
appendln("a += {")
appendLine("a += {")
}
for (i in 1..size) {
appendln(
appendLine(
"""
it.inc()
1
}
""".trimIndent())
""".trimIndent()
)
}
appendln()
appendLine()
}
}