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
@@ -144,6 +144,7 @@ internal class ArrayMapImpl<T : Any> : ArrayMap<T> {
// Public signature: /ArrayMapImpl.Entry.<init>|437318787564761214[0]
// Public signature debug description: <init>(kotlin.Int;1:0){}
constructor(key: Int, value: T) /* primary */
// CHECK JVM_IR:
// Mangled name: ArrayMapImpl.Entry#component1(){}kotlin.Int
// Public signature: /ArrayMapImpl.Entry.component1|-8217597213800111288[0]
@@ -253,6 +254,7 @@ internal class ArrayMapImpl<T : Any> : ArrayMap<T> {
// Public signature: /ArrayMapImpl.<init>|-940489726603364367[0]
// Public signature debug description: <init>(kotlin.Array<kotlin.Any?>){}
private constructor(data: Array<Any?>) /* primary */
// CHECK:
// Mangled name: ArrayMapImpl#<init>(){}
// Public signature: /ArrayMapImpl.<init>|-5645683436151566731[0]