IR text tests: Stable blank lines between declarations in class

Rework rendering of kt-like dump and signatures dump in order to avoid
unstable blank line between declarations of the same level:
1. No blank line for the first declaration inside the member scope of
the class.
2. Always a single blank line between each two subsequent declarations
inside the member scope of the class.
This commit is contained in:
Dmitriy Dolovov
2023-11-23 23:00:58 +01:00
committed by Space Team
parent 4532f52898
commit 16d1e85932
231 changed files with 236 additions and 280 deletions
@@ -1,5 +1,4 @@
interface CPointed {
}
inline fun <reified T : CPointed> CPointed.reinterpret(): T {
@@ -41,7 +41,6 @@ class IdType : CPointed {
// Mangled name: CPointed
// Public signature: /CPointed|null[0]
interface CPointed {
}
// CHECK:
@@ -33,6 +33,7 @@ sealed class NetRequestStatus<out T : Any> {
// Public signature: /NetRequestStatus.Error.<init>|-1373568199086185373[0]
// Public signature debug description: <init>(kotlin.Throwable;1:0?){}
constructor(error: Throwable, value: T?) /* primary */
// CHECK JVM_IR:
// Mangled name: NetRequestStatus.Error#component1(){}kotlin.Throwable
// Public signature: /NetRequestStatus.Error.component1|2250146239720393392[0]
@@ -3,7 +3,6 @@ fun <X : Any?, Y : Any?> foo(): Function1<X, Y> {
}
interface Inv2<A : Any?, B : Any?> {
}
fun <T : Any?, R : Any?> check(x: T, y: R, f: Function1<T, R>): Inv2<T, R> {
@@ -2,7 +2,6 @@
// Mangled name: Inv2
// Public signature: /Inv2|null[0]
interface Inv2<A : Any?, B : Any?> {
}
// CHECK JVM_IR: