Files
Dmitriy Dolovov 02604060ae IR text tests: Don't dump signatures for local declarations
1. Local declarations don't participate in IR-linkage, because they
can be referenced only inside the same body -> can be dropped
from IR text tests.

2. Mangled names for private declarations computed by descriptors/fir
are actually not used anywhere (they are recomputed by IR
immediately before serialization of IR). But sometimes such
mangled names diverge between K1 and K2 -> don't check them, but
always check mangled names computed by IR even for private
declarations.

3. Also: Drop DUMP_LOCAL_DECLARATION_SIGNATURES test directive.

^KT-57428 Obsolete
^KT-57430 Obsolete
^KT-57434 Obsolete
^KT-57778 Obsolete
^KT-57775 Obsolete
2023-11-30 08:32:35 +00:00

58 lines
2.4 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: MyClass
// Public signature: /MyClass|null[0]
class MyClass {
// CHECK:
// Mangled name: MyClass{}value
// Public signature: /MyClass.value|1987073854177347439[0]
// Public signature debug description: {}value
val value: String
// CHECK JVM_IR:
// Mangled name: MyClass#<get-value>(){}kotlin.String
// Public signature: /MyClass.value.<get-value>|-7202092821145242726[0]
// Public signature debug description: <get-value>(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: MyClass#<get-value>(){}
// Public signature: /MyClass.value.<get-value>|3260093555963109437[0]
// Public signature debug description: <get-value>(){}
get
// CHECK:
// Mangled name: MyClass#<init>(kotlin.String){}
// Public signature: /MyClass.<init>|1280618353163213788[0]
// Public signature debug description: <init>(kotlin.String){}
constructor(value: String) /* primary */
}
// CHECK JVM_IR:
// Mangled name: #box(){}kotlin.String
// Public signature: /box|-9347091776561469[0]
// Public signature debug description: box(){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #box(){}
// Public signature: /box|2173511048851971368[0]
// Public signature debug description: box(){}
fun box(): String
// CHECK JVM_IR:
// Mangled name: #getValue@kotlin.String(kotlin.Any?;kotlin.Any){}kotlin.String
// Public signature: /getValue|-3094640188751663439[0]
// Public signature debug description: getValue@kotlin.String(kotlin.Any?;kotlin.Any){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #getValue@kotlin.String(kotlin.Any?;kotlin.Any){}
// Public signature: /getValue|3042257834970167256[0]
// Public signature debug description: getValue@kotlin.String(kotlin.Any?;kotlin.Any){}
operator fun String.getValue(receiver: Any?, p: Any): String
// CHECK JVM_IR:
// Mangled name: #provideDelegate@MyClass(kotlin.Any?;kotlin.Any){}kotlin.String
// Public signature: /provideDelegate|1258517683836483629[0]
// Public signature debug description: provideDelegate@MyClass(kotlin.Any?;kotlin.Any){}kotlin.String
// CHECK JS_IR NATIVE:
// Mangled name: #provideDelegate@MyClass(kotlin.Any?;kotlin.Any){}
// Public signature: /provideDelegate|-3220946013837035345[0]
// Public signature debug description: provideDelegate@MyClass(kotlin.Any?;kotlin.Any){}
operator fun MyClass.provideDelegate(host: Any?, p: Any): String