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:
committed by
Space Team
parent
4532f52898
commit
16d1e85932
@@ -29,6 +29,7 @@ data class Some {
|
||||
// Public signature: /Some.<init>|-5225459408480290556[0]
|
||||
// Public signature debug description: <init>(kotlin.String;<dynamic>){}
|
||||
constructor(a: String, b: dynamic) /* primary */
|
||||
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: Some#component1(){}
|
||||
// Public signature: /Some.component1|162597135895221648[0]
|
||||
|
||||
@@ -55,7 +55,7 @@ open external class internal {
|
||||
}
|
||||
|
||||
interface NestedExternalInterface {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@ package events
|
||||
|
||||
open external class internal {
|
||||
external constructor() /* primary */
|
||||
|
||||
open external class EventEmitterP : internal {
|
||||
external constructor() /* primary */
|
||||
|
||||
@@ -19,6 +20,7 @@ open external class internal {
|
||||
|
||||
external enum class NestedExternalEnum : Enum<NestedExternalEnum> {
|
||||
private external constructor() /* primary */
|
||||
|
||||
A = NestedExternalEnum()
|
||||
|
||||
B = NestedExternalEnum()
|
||||
@@ -33,7 +35,6 @@ open external class internal {
|
||||
}
|
||||
|
||||
external interface NestedExternalInterface {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ open external class internal {
|
||||
// Public signature: events/internal.NestedExternalEnum.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private external constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: events.internal.NestedExternalEnum.A
|
||||
// Public signature: events/internal.NestedExternalEnum.A|null[0]
|
||||
@@ -122,7 +123,6 @@ open external class internal {
|
||||
// Mangled name: events.internal.NestedExternalInterface
|
||||
// Public signature: events/internal.NestedExternalInterface|null[0]
|
||||
external interface NestedExternalInterface {
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
|
||||
@@ -2,12 +2,14 @@ package foo
|
||||
|
||||
open external class A {
|
||||
external constructor() /* primary */
|
||||
|
||||
external fun foo(): String
|
||||
|
||||
}
|
||||
|
||||
open external class B : A {
|
||||
external constructor() /* primary */
|
||||
|
||||
external fun bar(): String
|
||||
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ class C : B {
|
||||
// Public signature: foo/C.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: foo.C#bar(){}
|
||||
// Public signature: foo/C.bar|496682602797471549[0]
|
||||
|
||||
Reference in New Issue
Block a user