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
@@ -83,6 +83,7 @@ class Test2 {
// Public signature: /Test2.TestInner.<init>|-8731461708390519279[0]
// Public signature debug description: <init>(1:0){}
constructor(z: Z) /* primary */
// CHECK:
// Mangled name: Test2.TestInner#<init>(1:0;kotlin.Int){}
// Public signature: /Test2.TestInner.<init>|7281397193015694517[0]
@@ -165,6 +166,7 @@ class Test4<T : Any?> {
// Public signature: /Test4.<init>|-5182794243525578284[0]
// Public signature debug description: <init>(kotlin.Int){}
constructor(x: Int) /* primary */
// CHECK:
// Mangled name: Test4#<init>(kotlin.Int;kotlin.Int){}
// Public signature: /Test4.<init>|-7691762014320324121[0]