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 DataClass : Delegate, Derived {
// Public signature: /DataClass.<init>|7426992287025160657[0]
// Public signature debug description: <init>(Delegate){}
constructor(delegate: Delegate) /* primary */
// CHECK:
// Mangled name: DataClass#bar(){}
// Public signature: /DataClass.bar|496682602797471549[0]
@@ -84,14 +85,12 @@ data class DataClass : Delegate, Derived {
// Mangled name: Base
// Public signature: /Base|null[0]
interface Base {
}
// CHECK:
// Mangled name: Delegate
// Public signature: /Delegate|null[0]
interface Delegate : Base {
// CHECK:
// Mangled name: Delegate#bar(){}
// Public signature: /Delegate.bar|496682602797471549[0]