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.
22 lines
608 B
Kotlin
Vendored
22 lines
608 B
Kotlin
Vendored
// CHECK:
|
|
// Mangled name: #outer(){}
|
|
// Public signature: /outer|1607449560170809066[0]
|
|
// Public signature debug description: outer(){}
|
|
fun outer(): Unit
|
|
// CHECK:
|
|
// Mangled name: #outer(){}.LocalClass
|
|
// Mangled name for the signature: outer(){}
|
|
local class LocalClass {
|
|
// CHECK:
|
|
// Mangled name: #outer(){}.LocalClass#<init>(){}
|
|
// Mangled name for the signature: outer(){}<init>(){}
|
|
constructor() /* primary */
|
|
|
|
// CHECK:
|
|
// Mangled name: #outer(){}.LocalClass#foo(){}
|
|
// Mangled name for the signature: outer(){}foo(){}
|
|
fun foo(): Unit
|
|
|
|
}
|
|
|