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
@@ -64,11 +64,11 @@ class IncompatibleExpectedActualClassScopesRenderer(
open class MultiplatformDiagnosticRenderingMode {
open fun newLine(sb: StringBuilder) {
sb.appendln()
sb.appendLine()
}
open fun renderList(sb: StringBuilder, elements: List<() -> Unit>) {
sb.appendln()
sb.appendLine()
for (element in elements) {
element()
}
@@ -77,7 +77,7 @@ open class MultiplatformDiagnosticRenderingMode {
open fun renderDescriptor(sb: StringBuilder, descriptor: DeclarationDescriptor, context: RenderingContext, indent: String) {
sb.append(indent)
sb.append(INDENTATION_UNIT)
sb.appendln(Renderers.COMPACT_WITH_MODIFIERS.render(descriptor, context))
sb.appendLine(Renderers.COMPACT_WITH_MODIFIERS.render(descriptor, context))
}
}
@@ -14,12 +14,12 @@ fun getExceptionMessage(
location: String?
): String = ApplicationManager.getApplication().runReadAction<String> {
buildString {
append(subsystemName).append(" Internal error: ").appendln(message)
append(subsystemName).append(" Internal error: ").appendLine(message)
if (location != null) {
append("File being compiled: ").appendln(location)
append("File being compiled: ").appendLine(location)
} else {
appendln("File is unknown")
appendLine("File is unknown")
}
if (cause != null) {