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
@@ -142,6 +142,7 @@ data class Test1 {
// Public signature: /Test1.<init>|-2901047261480922149[0]
// Public signature debug description: <init>(kotlin.Array<kotlin.String>;kotlin.CharArray;kotlin.BooleanArray;kotlin.ByteArray;kotlin.ShortArray;kotlin.IntArray;kotlin.LongArray;kotlin.FloatArray;kotlin.DoubleArray){}
constructor(stringArray: Array<String>, charArray: CharArray, booleanArray: BooleanArray, byteArray: ByteArray, shortArray: ShortArray, intArray: IntArray, longArray: LongArray, floatArray: FloatArray, doubleArray: DoubleArray) /* primary */
// CHECK JVM_IR:
// Mangled name: Test1#component1(){}kotlin.Array<kotlin.String>
// Public signature: /Test1.component1|2673462985803256369[0]
@@ -298,6 +299,7 @@ data class Test2<T : Any?> {
// Public signature: /Test2.<init>|-6569388914691766420[0]
// Public signature debug description: <init>(kotlin.Array<1:0>){}
constructor(genericArray: Array<T>) /* primary */
// CHECK JVM_IR:
// Mangled name: Test2#component1(){}kotlin.Array<1:0>
// Public signature: /Test2.component1|-8550302254215159930[0]
@@ -374,6 +376,7 @@ data class Test3 {
// Public signature: /Test3.<init>|2034455610636948474[0]
// Public signature debug description: <init>(kotlin.Array<kotlin.Any>?){}
constructor(anyArrayN: Array<Any>?) /* primary */
// CHECK JVM_IR:
// Mangled name: Test3#component1(){}kotlin.Array<kotlin.Any>?
// Public signature: /Test3.component1|3443609172722853741[0]