69aeddcba8
We plan to disable computing full mangled names of declarations in all manglers except the IR mangler (see the subsequent commits). From now on, in irText tests we dump only the following mangled names: - Full mangled names computed using the IR mangler - Signature mangled names computed using the Descriptor mangler - Signature mangled names computed using the IR mangler - Signature mangled names computed using the FIR mangler Here by a full mangled name we mean the mangled name of a declaration computed using the `MangleMode.FULL` mode. Those mangled names include the mangled names of the declaration'a parents. By a signature mangled name we mean the mangled name of a declaration computed using the `MangleMode.SIGNATURE` mode. These mangled names are used to compute an `IdSignature` for the declaration, hence the name.
73 lines
2.6 KiB
Kotlin
Vendored
73 lines
2.6 KiB
Kotlin
Vendored
// CHECK:
|
|
// Mangled name: Inner
|
|
// Public signature: /Inner|null[0]
|
|
class Inner {
|
|
// CHECK:
|
|
// Mangled name: Inner#<init>!Outer(kotlin.Any){}
|
|
// Public signature: /Inner.<init>|7428094623108856579[0]
|
|
// Public signature debug description: <init>!Outer(kotlin.Any){}
|
|
constructor($context_receiver_0: Outer, arg: Any) /* primary */
|
|
// CHECK JVM_IR:
|
|
// Mangled name: Inner.contextReceiverField0
|
|
// Mangled name for the signature computed from Ir:
|
|
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0#jf
|
|
// CHECK JS_IR NATIVE:
|
|
// Mangled name: Inner.contextReceiverField0
|
|
// Mangled name for the signature computed from Ir:
|
|
// Mangled name for the signature computed from Descriptor: {}contextReceiverField0
|
|
private /* final field */ val contextReceiverField0: Outer
|
|
|
|
// CHECK JVM_IR:
|
|
// Mangled name: Inner#bar(){}kotlin.Int
|
|
// Public signature: /Inner.bar|-6436649210114349217[0]
|
|
// Public signature debug description: bar(){}kotlin.Int
|
|
// CHECK JS_IR NATIVE:
|
|
// Mangled name: Inner#bar(){}
|
|
// Public signature: /Inner.bar|496682602797471549[0]
|
|
// Public signature debug description: bar(){}
|
|
fun bar(): Int
|
|
|
|
}
|
|
|
|
// CHECK:
|
|
// Mangled name: Outer
|
|
// Public signature: /Outer|null[0]
|
|
class Outer {
|
|
// CHECK:
|
|
// Mangled name: Outer{}x
|
|
// Public signature: /Outer.x|-8060530855978347579[0]
|
|
// Public signature debug description: {}x
|
|
val x: Int
|
|
field
|
|
// CHECK JVM_IR:
|
|
// Mangled name: Outer#<get-x>(){}kotlin.Int
|
|
// Public signature: /Outer.x.<get-x>|4966956098150895696[0]
|
|
// Public signature debug description: <get-x>(){}kotlin.Int
|
|
// CHECK JS_IR NATIVE:
|
|
// Mangled name: Outer#<get-x>(){}
|
|
// Public signature: /Outer.x.<get-x>|1482705010654679335[0]
|
|
// Public signature debug description: <get-x>(){}
|
|
get
|
|
|
|
// CHECK:
|
|
// Mangled name: Outer#<init>(){}
|
|
// Public signature: /Outer.<init>|-5645683436151566731[0]
|
|
// Public signature debug description: <init>(){}
|
|
constructor() /* primary */
|
|
|
|
}
|
|
|
|
// CHECK:
|
|
// Mangled name: #f(Outer){}
|
|
// Public signature: /f|-90367846469451219[0]
|
|
// Public signature debug description: f(Outer){}
|
|
fun f(outer: Outer): Unit
|
|
// CHECK JVM_IR:
|
|
// Mangled name: #f(Outer){}#<anonymous>#static@Outer(){}Inner
|
|
// Mangled name for the signature: f(Outer){}<anonymous>#static@Outer(){}Inner
|
|
// CHECK JS_IR NATIVE:
|
|
// Mangled name: #f(Outer){}#<anonymous>#static@Outer(){}
|
|
// Mangled name for the signature: f(Outer){}<anonymous>#static@Outer(){}
|
|
local fun Outer.<anonymous>(): Inner
|
|
|