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
-1
@@ -23,7 +23,6 @@ class TestClass {
|
||||
|
||||
@TestAnn(x = "interface")
|
||||
interface TestInterface {
|
||||
|
||||
}
|
||||
|
||||
@TestAnn(x = "object")
|
||||
|
||||
-1
@@ -23,7 +23,6 @@ class TestClass {
|
||||
|
||||
@TestAnn(x = "interface")
|
||||
interface TestInterface {
|
||||
|
||||
}
|
||||
|
||||
@TestAnn(x = "object")
|
||||
|
||||
+1
-1
@@ -86,6 +86,7 @@ enum class TestEnum : Enum<TestEnum> {
|
||||
// Public signature: /TestEnum.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestEnum#valueOf#static(kotlin.String){}TestEnum
|
||||
// Public signature: /TestEnum.valueOf|1811575739170804829[0]
|
||||
@@ -198,7 +199,6 @@ enum class TestEnum : Enum<TestEnum> {
|
||||
// Public signature: /TestInterface|null[0]
|
||||
@TestAnn(x = "interface")
|
||||
interface TestInterface {
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
|
||||
Vendored
+1
@@ -35,6 +35,7 @@ class TestClass {
|
||||
// Public signature debug description: <init>(){}
|
||||
@TestAnn(x = 1)
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: TestClass#<init>(kotlin.Int){}
|
||||
// Public signature: /TestClass.<init>|-5182794243525578284[0]
|
||||
|
||||
+1
@@ -34,6 +34,7 @@ enum class En : Enum<En> {
|
||||
// Public signature: /En.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: En.A
|
||||
// Public signature: /En.A|null[0]
|
||||
|
||||
-1
@@ -27,7 +27,6 @@ open annotation class Test2<T1 : Any, T2 : Any?> : Annotation {
|
||||
}
|
||||
|
||||
interface I<T : Any?> {
|
||||
|
||||
}
|
||||
|
||||
open annotation class Test3<T1 : Any?, T2 : I<T1>> : Annotation {
|
||||
|
||||
-1
@@ -27,7 +27,6 @@ open annotation class Test2<T1 : Any, T2 : Any?> : Annotation {
|
||||
}
|
||||
|
||||
interface I<T : Any?> {
|
||||
|
||||
}
|
||||
|
||||
open annotation class Test3<T1 : Any?, T2 : I<T1>> : Annotation {
|
||||
|
||||
-1
@@ -180,6 +180,5 @@ class CC {
|
||||
// Mangled name: ann.I
|
||||
// Public signature: ann/I|null[0]
|
||||
interface I<T : Any?> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -128,7 +128,6 @@ class ExplicitOverride : IFoo {
|
||||
// Mangled name: IFoo
|
||||
// Public signature: /IFoo|null[0]
|
||||
interface IFoo {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: IFoo@kotlin.String{}extProp
|
||||
// Public signature: /IFoo.extProp|9137761441129982647[0]
|
||||
|
||||
Reference in New Issue
Block a user