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
@@ -2,7 +2,6 @@
|
||||
// Mangled name: IA
|
||||
// Public signature: /IA|null[0]
|
||||
interface IA {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IA#get(kotlin.String){}kotlin.Int
|
||||
// Public signature: /IA.get|8115151130332405730[0]
|
||||
@@ -19,7 +18,6 @@ interface IA {
|
||||
// Mangled name: IB
|
||||
// Public signature: /IB|null[0]
|
||||
interface IB {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: IB#set@IA(kotlin.String;kotlin.Int){}
|
||||
// Public signature: /IB.set|-3878244067281394744[0]
|
||||
|
||||
Vendored
-1
@@ -4,7 +4,6 @@ fun interface IFoo {
|
||||
}
|
||||
|
||||
fun interface IFoo2 : IFoo {
|
||||
|
||||
}
|
||||
|
||||
object A {
|
||||
|
||||
-1
@@ -4,7 +4,6 @@ fun interface IFoo {
|
||||
}
|
||||
|
||||
fun interface IFoo2 : IFoo {
|
||||
|
||||
}
|
||||
|
||||
object A {
|
||||
|
||||
Vendored
-2
@@ -2,7 +2,6 @@
|
||||
// Mangled name: IFoo
|
||||
// Public signature: /IFoo|null[0]
|
||||
fun interface IFoo {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: IFoo#foo(kotlin.Int){}
|
||||
// Public signature: /IFoo.foo|-104159190164110731[0]
|
||||
@@ -15,7 +14,6 @@ fun interface IFoo {
|
||||
// Mangled name: IFoo2
|
||||
// Public signature: /IFoo2|null[0]
|
||||
fun interface IFoo2 : IFoo {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: IFoo2#foo(kotlin.Int){}
|
||||
// Public signature: /IFoo2.foo|-104159190164110731[0]
|
||||
|
||||
-1
@@ -2,7 +2,6 @@
|
||||
// Mangled name: IFoo
|
||||
// Public signature: /IFoo|null[0]
|
||||
fun interface IFoo {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: IFoo#foo(kotlin.Int){}
|
||||
// Public signature: /IFoo.foo|-104159190164110731[0]
|
||||
|
||||
Vendored
-1
@@ -2,7 +2,6 @@
|
||||
// Mangled name: SuspendRunnable
|
||||
// Public signature: /SuspendRunnable|null[0]
|
||||
fun interface SuspendRunnable {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: SuspendRunnable#invoke(){}
|
||||
// Public signature: /SuspendRunnable.invoke|-4663091332620260873[0]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
interface IA {
|
||||
|
||||
}
|
||||
|
||||
interface IB {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
interface IA {
|
||||
|
||||
}
|
||||
|
||||
interface IB {
|
||||
|
||||
@@ -2,14 +2,12 @@
|
||||
// Mangled name: IA
|
||||
// Public signature: /IA|null[0]
|
||||
interface IA {
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: IB
|
||||
// Public signature: /IB|null[0]
|
||||
interface IB {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IB#compareTo@IA(IA){}kotlin.Int
|
||||
// Public signature: /IB.compareTo|-7259969497814497426[0]
|
||||
|
||||
@@ -7,6 +7,7 @@ abstract enum class X : Enum<X> {
|
||||
// Public signature: /X.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: X.B
|
||||
// Public signature: /X.B|null[0]
|
||||
@@ -51,6 +52,7 @@ abstract enum class X : Enum<X> {
|
||||
// Public signature: /X.B.<EEC>.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: X.B#compareTo(X){}kotlin.Int
|
||||
// Public signature: /X.B.<EEC>.compareTo|-4945307460605318887[0]
|
||||
|
||||
@@ -7,6 +7,7 @@ enum class A : Enum<A> {
|
||||
// Public signature: /A.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: A.V1
|
||||
// Public signature: /A.V1|null[0]
|
||||
|
||||
@@ -34,7 +34,6 @@ class IntCell {
|
||||
// Mangled name: IReceiver
|
||||
// Public signature: /IReceiver|null[0]
|
||||
interface IReceiver {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IReceiver#hasNext@IntCell(){}kotlin.Boolean
|
||||
// Public signature: /IReceiver.hasNext|8807543829800046753[0]
|
||||
|
||||
Vendored
-1
@@ -2,7 +2,6 @@
|
||||
// Mangled name: IRunnable
|
||||
// Public signature: /IRunnable|null[0]
|
||||
fun interface IRunnable {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: IRunnable#run(){}
|
||||
// Public signature: /IRunnable.run|-991178076551934874[0]
|
||||
|
||||
Vendored
-1
@@ -2,7 +2,6 @@
|
||||
// Mangled name: Foo
|
||||
// Public signature: /Foo|null[0]
|
||||
fun interface Foo {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Foo#invoke(){}kotlin.String
|
||||
// Public signature: /Foo.invoke|8861605044563078664[0]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Mangled name: KRunnable
|
||||
// Public signature: /KRunnable|null[0]
|
||||
fun interface KRunnable {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: KRunnable#invoke(){}
|
||||
// Public signature: /KRunnable.invoke|-4663091332620260873[0]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
fun interface Foo : Function0<Int> {
|
||||
|
||||
}
|
||||
|
||||
fun id(foo: Foo): Any {
|
||||
|
||||
-1
@@ -2,7 +2,6 @@
|
||||
// Mangled name: Foo
|
||||
// Public signature: /Foo|null[0]
|
||||
fun interface Foo : Function0<Int> {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Foo#invoke(){}kotlin.Int
|
||||
// Public signature: /Foo.invoke|906964710558498066[0]
|
||||
|
||||
@@ -54,7 +54,6 @@ class J {
|
||||
// Mangled name: Fn
|
||||
// Public signature: /Fn|null[0]
|
||||
fun interface Fn<T : Any?, R : Any?> {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Fn#run(kotlin.String;kotlin.Int;1:0){}1:1
|
||||
// Public signature: /Fn.run|6229634511602909233[0]
|
||||
|
||||
-1
@@ -2,7 +2,6 @@
|
||||
// Mangled name: IFoo
|
||||
// Public signature: /IFoo|null[0]
|
||||
fun interface IFoo {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: IFoo#foo(kotlin.Int){}
|
||||
// Public signature: /IFoo.foo|-104159190164110731[0]
|
||||
|
||||
Vendored
-1
@@ -2,7 +2,6 @@
|
||||
// Mangled name: MyRunnable
|
||||
// Public signature: /MyRunnable|null[0]
|
||||
fun interface MyRunnable {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: MyRunnable#run(){}
|
||||
// Public signature: /MyRunnable.run|-991178076551934874[0]
|
||||
|
||||
Vendored
-1
@@ -2,7 +2,6 @@
|
||||
// Mangled name: KRunnable
|
||||
// Public signature: /KRunnable|null[0]
|
||||
fun interface KRunnable {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: KRunnable#run(){}
|
||||
// Public signature: /KRunnable.run|-991178076551934874[0]
|
||||
|
||||
Vendored
-1
@@ -83,7 +83,6 @@ fun <T> test7b(a: T) where T : Function1<Int, Unit>, T : Function0<Unit> {
|
||||
}
|
||||
|
||||
interface Unrelated {
|
||||
|
||||
}
|
||||
|
||||
fun <T> test7c(a: T) where T : Unrelated, T : Function0<Unit> {
|
||||
|
||||
-1
@@ -83,7 +83,6 @@ fun <T> test7b(a: T) where T : Function1<Int, Unit>, T : Function0<Unit> {
|
||||
}
|
||||
|
||||
interface Unrelated {
|
||||
|
||||
}
|
||||
|
||||
fun <T> test7c(a: T) where T : Unrelated, T : Function0<Unit> {
|
||||
|
||||
Vendored
-2
@@ -2,7 +2,6 @@
|
||||
// Mangled name: KRunnable
|
||||
// Public signature: /KRunnable|null[0]
|
||||
fun interface KRunnable {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: KRunnable#run(){}
|
||||
// Public signature: /KRunnable.run|-991178076551934874[0]
|
||||
@@ -15,7 +14,6 @@ fun interface KRunnable {
|
||||
// Mangled name: Unrelated
|
||||
// Public signature: /Unrelated|null[0]
|
||||
interface Unrelated {
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
|
||||
-3
@@ -2,7 +2,6 @@
|
||||
// Mangled name: KConsumer
|
||||
// Public signature: /KConsumer|null[0]
|
||||
fun interface KConsumer<T : Any?> {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: KConsumer#accept(1:0){}
|
||||
// Public signature: /KConsumer.accept|6106307687017385176[0]
|
||||
@@ -15,7 +14,6 @@ fun interface KConsumer<T : Any?> {
|
||||
// Mangled name: KRunnable
|
||||
// Public signature: /KRunnable|null[0]
|
||||
fun interface KRunnable {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: KRunnable#run(){}
|
||||
// Public signature: /KRunnable.run|-991178076551934874[0]
|
||||
@@ -28,7 +26,6 @@ fun interface KRunnable {
|
||||
// Mangled name: KSupplier
|
||||
// Public signature: /KSupplier|null[0]
|
||||
fun interface KSupplier<T : Any?> {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: KSupplier#get(){}1:0
|
||||
// Public signature: /KSupplier.get|-8285253024618084508[0]
|
||||
|
||||
+1
@@ -7,6 +7,7 @@ class C {
|
||||
// Public signature: /C.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: C#<init>(kotlin.Any?){}
|
||||
// Public signature: /C.<init>|-8205545948568413246[0]
|
||||
|
||||
-1
@@ -6,7 +6,6 @@ inline fun <reified T : Any> Any.test1(): T? {
|
||||
}
|
||||
|
||||
interface Foo<T : Any?> {
|
||||
|
||||
}
|
||||
|
||||
val <reified T : Any> Foo<T>.asT: T?
|
||||
|
||||
@@ -6,7 +6,6 @@ inline fun <reified T : Any> Any.test1(): T? {
|
||||
}
|
||||
|
||||
interface Foo<T : Any?> {
|
||||
|
||||
}
|
||||
|
||||
val <reified T : Any> Foo<T>.asT: T?
|
||||
|
||||
-1
@@ -26,7 +26,6 @@ class Bar<T : Any?> {
|
||||
// Mangled name: Foo
|
||||
// Public signature: /Foo|null[0]
|
||||
interface Foo<T : Any?> {
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Mangled name: IFoo
|
||||
// Public signature: /IFoo|null[0]
|
||||
interface IFoo {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: IFoo#bar(){}
|
||||
// Public signature: /IFoo.bar|496682602797471549[0]
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
interface IFoo {
|
||||
|
||||
}
|
||||
|
||||
class Derived1 : JFieldOwner, IFoo {
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
interface IFoo {
|
||||
|
||||
}
|
||||
|
||||
class Derived1 : JFieldOwner, IFoo {
|
||||
|
||||
-1
@@ -62,7 +62,6 @@ open class Mid : JFieldOwner {
|
||||
// Mangled name: IFoo
|
||||
// Public signature: /IFoo|null[0]
|
||||
interface IFoo {
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
|
||||
@@ -25,6 +25,7 @@ abstract class AML : MutableList<Int> {
|
||||
// Public signature: /AML.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: AML#add(kotlin.Int){}kotlin.Boolean
|
||||
// Public signature: /AML.add|-1806173376318726841[0]
|
||||
@@ -244,7 +245,6 @@ abstract class AML : MutableList<Int> {
|
||||
// Mangled name: X
|
||||
// Public signature: /X|null[0]
|
||||
interface X {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: X#f(){}kotlin.collections.MutableList<kotlin.Any>
|
||||
// Public signature: /X.f|7644118277748321581[0]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Mangled name: Base
|
||||
// Public signature: /Base|null[0]
|
||||
interface Base {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Base#foo(){}
|
||||
// Public signature: /Base.foo|-1041209573719867811[0]
|
||||
|
||||
@@ -3,15 +3,12 @@ fun <E : Any?> produce(block: @ExtensionFunctionType Function1<Derived<E>, Unit>
|
||||
}
|
||||
|
||||
interface Derived<in E : Any?> : Base<E> {
|
||||
|
||||
}
|
||||
|
||||
interface Base<in E : Any?> {
|
||||
|
||||
}
|
||||
|
||||
interface Receiver<out E : Any?> {
|
||||
|
||||
}
|
||||
|
||||
fun <E : Any?, C : Base<E>> Receiver<E>.toChannel(destination: C): C {
|
||||
|
||||
@@ -2,21 +2,18 @@
|
||||
// Mangled name: Base
|
||||
// Public signature: /Base|null[0]
|
||||
interface Base<in E : Any?> {
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Derived
|
||||
// Public signature: /Derived|null[0]
|
||||
interface Derived<in E : Any?> : Base<E> {
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Receiver
|
||||
// Public signature: /Receiver|null[0]
|
||||
interface Receiver<out E : Any?> {
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
|
||||
@@ -71,7 +71,6 @@ class E {
|
||||
// Mangled name: A
|
||||
// Public signature: /A|null[0]
|
||||
interface A {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: A{}x
|
||||
// Public signature: /A.x|-8060530855978347579[0]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Mangled name: IC1
|
||||
// Public signature: /IC1|null[0]
|
||||
interface IC1 {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IC1#component1(){}kotlin.Int
|
||||
// Public signature: /IC1.component1|-8217597213800111288[0]
|
||||
@@ -19,7 +18,6 @@ interface IC1 {
|
||||
// Mangled name: IC2
|
||||
// Public signature: /IC2|null[0]
|
||||
interface IC2 {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IC2#component2(){}kotlin.String
|
||||
// Public signature: /IC2.component2|1228864375093914597[0]
|
||||
|
||||
@@ -37,6 +37,7 @@ enum class En : Enum<En> {
|
||||
// Public signature: /En.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: En.X
|
||||
// Public signature: /En.X|null[0]
|
||||
|
||||
@@ -34,7 +34,6 @@ class Ref {
|
||||
// Mangled name: IHost
|
||||
// Public signature: /IHost|null[0]
|
||||
interface IHost {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: IHost#extLength@kotlin.String(){}kotlin.Int
|
||||
// Public signature: /IHost.extLength|-6119453020131348069[0]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Mangled name: A
|
||||
// Public signature: /A|null[0]
|
||||
interface A {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: A#foo(){}
|
||||
// Public signature: /A.foo|-1041209573719867811[0]
|
||||
@@ -15,7 +14,6 @@ interface A {
|
||||
// Mangled name: B
|
||||
// Public signature: /B|null[0]
|
||||
interface B : A {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: B#foo(){}
|
||||
// Public signature: /B.foo|-1041209573719867811[0]
|
||||
@@ -34,7 +32,6 @@ interface B : A {
|
||||
// Mangled name: C
|
||||
// Public signature: /C|null[0]
|
||||
interface C : A {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: C#foo(){}
|
||||
// Public signature: /C.foo|-1041209573719867811[0]
|
||||
|
||||
@@ -20,7 +20,6 @@ abstract class Bar<T : Any> {
|
||||
// Mangled name: Foo
|
||||
// Public signature: /Foo|null[0]
|
||||
interface Foo<out T : Any?> {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Foo#foo(){}
|
||||
// Public signature: /Foo.foo|-1041209573719867811[0]
|
||||
|
||||
-2
@@ -1,9 +1,7 @@
|
||||
interface I1 {
|
||||
|
||||
}
|
||||
|
||||
interface I2 {
|
||||
|
||||
}
|
||||
|
||||
operator fun I1.component1(): Int {
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
interface I1 {
|
||||
|
||||
}
|
||||
|
||||
interface I2 {
|
||||
|
||||
}
|
||||
|
||||
operator fun I1.component1(): Int {
|
||||
|
||||
-2
@@ -2,14 +2,12 @@
|
||||
// Mangled name: I1
|
||||
// Public signature: /I1|null[0]
|
||||
interface I1 {
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: I2
|
||||
// Public signature: /I2|null[0]
|
||||
interface I2 {
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
|
||||
-1
@@ -2,7 +2,6 @@
|
||||
// Mangled name: SuspendRunnable
|
||||
// Public signature: /SuspendRunnable|null[0]
|
||||
fun interface SuspendRunnable {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: SuspendRunnable#invoke(){}
|
||||
// Public signature: /SuspendRunnable.invoke|-4663091332620260873[0]
|
||||
|
||||
+1
@@ -37,6 +37,7 @@ enum class En : Enum<En> {
|
||||
// Public signature: /En.<init>|392868513202821770[0]
|
||||
// Public signature debug description: <init>(kotlin.String?){}
|
||||
private constructor(x: String?) /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: En.ENTRY
|
||||
// Public signature: /En.ENTRY|null[0]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
interface IThing {
|
||||
|
||||
}
|
||||
|
||||
fun test1(x: Any): Boolean {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Mangled name: IThing
|
||||
// Public signature: /IThing|null[0]
|
||||
interface IThing {
|
||||
|
||||
}
|
||||
|
||||
// CHECK JVM_IR:
|
||||
|
||||
@@ -29,7 +29,6 @@ open class BaseClass {
|
||||
// Mangled name: I
|
||||
// Public signature: /I|null[0]
|
||||
interface I<G : Any?> {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: I#fromInterface@0:0(){0§<kotlin.Any?>}0:0
|
||||
// Public signature: /I.fromInterface|-4942486396992795009[0]
|
||||
|
||||
@@ -46,6 +46,7 @@ enum class Enum : Enum<Enum> {
|
||||
// Public signature: /Enum.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private constructor() /* primary */
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Enum.A
|
||||
// Public signature: /Enum.A|null[0]
|
||||
|
||||
@@ -7,6 +7,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]
|
||||
|
||||
Reference in New Issue
Block a user