Replace appendln with appendLine in project
This commit is contained in:
+2
-2
@@ -66,7 +66,7 @@ abstract class AbstractFirLoadCompiledKotlin : AbstractFirResolveWithSessionTest
|
||||
for (name in provider.getAllCallableNamesInPackage(packageFqName)) {
|
||||
for (symbol in provider.getTopLevelCallableSymbols(packageFqName, name)) {
|
||||
symbol.fir.accept(firRenderer)
|
||||
builder.appendln()
|
||||
builder.appendLine()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ abstract class AbstractFirLoadCompiledKotlin : AbstractFirResolveWithSessionTest
|
||||
provider.getClassLikeSymbolByFqName(ClassId.topLevel(packageFqName.child(name))) as FirClassSymbol?
|
||||
?: continue
|
||||
classLikeSymbol.fir.accept(firRenderer)
|
||||
builder.appendln()
|
||||
builder.appendLine()
|
||||
}
|
||||
|
||||
val testDataDirectoryPath =
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ class BuiltInsDeserializationForFirTestCase : AbstractFirResolveWithSessionTestC
|
||||
for (name in provider.getAllCallableNamesInPackage(packageFqName)) {
|
||||
for (symbol in provider.getTopLevelCallableSymbols(packageFqName, name)) {
|
||||
symbol.fir.accept(firRenderer)
|
||||
builder.appendln()
|
||||
builder.appendLine()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class BuiltInsDeserializationForFirTestCase : AbstractFirResolveWithSessionTestC
|
||||
provider.getClassLikeSymbolByFqName(ClassId.topLevel(packageFqName.child(name))) as FirClassSymbol?
|
||||
?: continue
|
||||
classLikeSymbol.fir.accept(firRenderer)
|
||||
builder.appendln()
|
||||
builder.appendLine()
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ abstract class AbstractFirOldFrontendLightClassesTest : AbstractFirOldFrontendDi
|
||||
)
|
||||
|
||||
psiClass.appendMirrorText(0, stringBuilder)
|
||||
stringBuilder.appendln()
|
||||
stringBuilder.appendLine()
|
||||
}
|
||||
|
||||
val expectedPath = testDataFile.path.replace(".kt", ".txt")
|
||||
|
||||
+6
-6
@@ -173,22 +173,22 @@ abstract class AbstractBuilderConfigurator<T : AbstractFirTreeBuilder>(val firTr
|
||||
return if (type == null) {
|
||||
allImplementations.filter { it.kind?.hasLeafBuilder == true }.singleOrNull() ?: this@AbstractBuilderConfigurator.run {
|
||||
val message = buildString {
|
||||
appendln("${this@extractImplementation} has multiple implementations:")
|
||||
appendLine("${this@extractImplementation} has multiple implementations:")
|
||||
for (implementation in allImplementations) {
|
||||
appendln(" - ${implementation.type}")
|
||||
appendLine(" - ${implementation.type}")
|
||||
}
|
||||
appendln("Please specify implementation is needed")
|
||||
appendLine("Please specify implementation is needed")
|
||||
}
|
||||
throw IllegalArgumentException(message)
|
||||
}
|
||||
} else {
|
||||
allImplementations.firstOrNull { it.type == type } ?: this@AbstractBuilderConfigurator.run {
|
||||
val message = buildString {
|
||||
appendln("${this@extractImplementation} has not implementation $type. Existing implementations:")
|
||||
appendLine("${this@extractImplementation} has not implementation $type. Existing implementations:")
|
||||
for (implementation in allImplementations) {
|
||||
appendln(" - ${implementation.type}")
|
||||
appendLine(" - ${implementation.type}")
|
||||
}
|
||||
appendln("Please specify implementation is needed")
|
||||
appendLine("Please specify implementation is needed")
|
||||
}
|
||||
throw IllegalArgumentException(message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user