Replace appendln with appendLine in project
This commit is contained in:
+6
-6
@@ -42,9 +42,9 @@ class KotlinUSwitchExpression(
|
||||
|
||||
override fun asRenderString() = buildString {
|
||||
val expr = expression?.let { "(" + it.asRenderString() + ") " } ?: ""
|
||||
appendln("switch $expr {")
|
||||
appendln(body.asRenderString())
|
||||
appendln("}")
|
||||
appendLine("switch $expr {")
|
||||
appendLine(body.asRenderString())
|
||||
appendLine("}")
|
||||
}
|
||||
|
||||
override val switchIdentifier: UIdentifier
|
||||
@@ -62,9 +62,9 @@ class KotlinUSwitchEntry(
|
||||
override val body: UExpressionList by lz {
|
||||
object : KotlinUExpressionList(sourcePsi, KotlinSpecialExpressionKinds.WHEN_ENTRY, this@KotlinUSwitchEntry) {
|
||||
override fun asRenderString() = buildString {
|
||||
appendln("{")
|
||||
expressions.forEach { appendln(it.asRenderString().withMargin) }
|
||||
appendln("}")
|
||||
appendLine("{")
|
||||
expressions.forEach { appendLine(it.asRenderString().withMargin) }
|
||||
appendLine("}")
|
||||
}
|
||||
}.apply KotlinUExpressionList@{
|
||||
val exprPsi = this@KotlinUSwitchEntry.sourcePsi.expression
|
||||
|
||||
@@ -43,7 +43,7 @@ class AlternativesRenderLogTest : AbstractKotlinUastTest() {
|
||||
builder.append(" ".repeat(level))
|
||||
builder.append("[${uElement.size}]:")
|
||||
builder.append(uElement.joinToString(", ", "[", "]") { it.asLogString() })
|
||||
builder.appendln()
|
||||
builder.appendLine()
|
||||
}
|
||||
if (uElement.any()) level++
|
||||
element.acceptChildren(this)
|
||||
|
||||
@@ -37,7 +37,7 @@ class MultiplesRequiredTypesTest : AbstractKotlinUastTest() {
|
||||
if (uElement != null) {
|
||||
builder.append(" ".repeat(level))
|
||||
builder.append(uElement.asLogString())
|
||||
builder.appendln()
|
||||
builder.appendLine()
|
||||
}
|
||||
if (uElement != null) level++
|
||||
element.acceptChildren(this)
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ abstract class IndentedPrintingVisitor(val shouldIndent: (PsiElement) -> Boolean
|
||||
if (charSequence != null) {
|
||||
builder.append(" ".repeat(level))
|
||||
builder.append(charSequence)
|
||||
builder.appendln()
|
||||
builder.appendLine()
|
||||
}
|
||||
|
||||
val shouldIndent = shouldIndent(element)
|
||||
|
||||
@@ -47,7 +47,7 @@ interface TypesTestBase {
|
||||
val value = node.getExpressionType()
|
||||
value?.let { builder.append(" : ").append(it) }
|
||||
}
|
||||
builder.appendln()
|
||||
builder.appendLine()
|
||||
level++
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ interface ValuesTestBase {
|
||||
val value = evaluationContext.valueOf(node)
|
||||
builder.append(" = ").append(value)
|
||||
}
|
||||
builder.appendln()
|
||||
builder.appendLine()
|
||||
level++
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user