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
@@ -22,6 +22,7 @@ data class A {
// Public signature: /A.<init>|-2423641970729475329[0]
// Public signature debug description: <init>(kotlin.Function2<A,kotlin.String,kotlin.Unit>){}
constructor(runA: @ExtensionFunctionType Function2<A, String, Unit>) /* primary */
// CHECK JVM_IR:
// Mangled name: A#component1(){}kotlin.Function2<A,kotlin.String,kotlin.Unit>
// Public signature: /A.component1|793860828130635274[0]
@@ -98,6 +99,7 @@ data class B {
// Public signature: /B.<init>|4518179880532599055[0]
// Public signature debug description: <init>(kotlin.Any){}
constructor(x: Any) /* primary */
// CHECK JVM_IR:
// Mangled name: B#component1(){}kotlin.Any
// Public signature: /B.component1|2325042746135573536[0]