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
@@ -120,7 +120,7 @@ private class KotlinIdeaResolutionException(
init {
withAttachment("info.txt", buildString {
append(resolvingWhat.description())
appendln("---------------------------------------------")
appendLine("---------------------------------------------")
append(creationPlace.description())
})
for (element in resolvingWhat.elements.withIndex()) {
@@ -137,15 +137,15 @@ private class CreationPlace(
private val platform: TargetPlatform?
) {
fun description() = buildString {
appendln("Resolver created for:")
appendLine("Resolver created for:")
for (element in elements) {
appendElement(element)
}
if (moduleInfo != null) {
appendln("Provided module info: $moduleInfo")
appendLine("Provided module info: $moduleInfo")
}
if (platform != null) {
appendln("Provided platform: $platform")
appendLine("Provided platform: $platform")
}
}
}
@@ -161,22 +161,22 @@ private class ResolvingWhat(
fun description(): String {
return buildString {
appendln("Failed performing task:")
appendLine("Failed performing task:")
if (serviceClass != null) {
appendln("Getting service: ${serviceClass.name}")
appendLine("Getting service: ${serviceClass.name}")
} else {
append("Analyzing code")
if (bodyResolveMode != null) {
append(" in BodyResolveMode.$bodyResolveMode")
}
appendln()
appendLine()
}
appendln("Elements:")
appendLine("Elements:")
for (element in elements) {
appendElement(element)
}
if (moduleDescriptor != null) {
appendln("Provided module descriptor for module ${moduleDescriptor.getCapability(ModuleInfo.Capability)}")
appendLine("Provided module descriptor for module ${moduleDescriptor.getCapability(ModuleInfo.Capability)}")
}
}
}
@@ -184,10 +184,10 @@ private class ResolvingWhat(
private fun StringBuilder.appendElement(element: PsiElement) {
fun info(key: String, value: String?) {
appendln(" $key = $value")
appendLine(" $key = $value")
}
appendln("Element of type: ${element.javaClass.simpleName}:")
appendLine("Element of type: ${element.javaClass.simpleName}:")
if (element is PsiNamedElement) {
info("name", element.name)
}
@@ -175,7 +175,7 @@ class PluginDeclarationProviderFactory(
append(it.name)
append(" isPhysical=${it.isPhysical}")
append(" modStamp=${it.modificationStamp}")
appendln()
appendLine()
}
}
}