16d1e85932
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.
31 lines
1.2 KiB
Kotlin
Vendored
31 lines
1.2 KiB
Kotlin
Vendored
// CHECK:
|
|
// Mangled name: IRunnable
|
|
// Public signature: /IRunnable|null[0]
|
|
fun interface IRunnable {
|
|
// CHECK:
|
|
// Mangled name: IRunnable#run(){}
|
|
// Public signature: /IRunnable.run|-991178076551934874[0]
|
|
// Public signature debug description: run(){}
|
|
abstract fun run(): Unit
|
|
|
|
}
|
|
|
|
// CHECK:
|
|
// Mangled name: #foo1(IRunnable;kotlin.Array<out|kotlin.String>...){}
|
|
// Public signature: /foo1|8109256075034655920[0]
|
|
// Public signature debug description: foo1(IRunnable;kotlin.Array<out|kotlin.String>...){}
|
|
fun foo1(r: IRunnable, vararg s: String): Unit
|
|
|
|
// CHECK:
|
|
// Mangled name: #foo2(IRunnable;IRunnable;kotlin.Array<out|kotlin.String>...){}
|
|
// Public signature: /foo2|-847052428556006975[0]
|
|
// Public signature debug description: foo2(IRunnable;IRunnable;kotlin.Array<out|kotlin.String>...){}
|
|
fun foo2(r1: IRunnable, r2: IRunnable, vararg s: String): Unit
|
|
|
|
// CHECK:
|
|
// Mangled name: #test(kotlin.Function0<kotlin.Unit>;IRunnable;kotlin.String;kotlin.Array<kotlin.String>){}
|
|
// Public signature: /test|8261026842322841823[0]
|
|
// Public signature debug description: test(kotlin.Function0<kotlin.Unit>;IRunnable;kotlin.String;kotlin.Array<kotlin.String>){}
|
|
fun test(fn: Function0<Unit>, r: IRunnable, s: String, arr: Array<String>): Unit
|
|
|