Files
kotlin-fork/compiler/testData/ir/irText/firProblems/localCompanion.sig.kt.txt
T
Sergej Jaskiewicz 69aeddcba8 [IR] In irText tests, test full mangled names only computed from IR
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.
2023-11-10 12:31:40 +00:00

59 lines
2.5 KiB
Kotlin
Vendored

// CHECK JVM_IR:
// Mangled name: #main(){}
// Mangled name for the signature computed from Ir: main(){}
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt
// Public signature: /main|1798078925369608927[0]
// Public signature debug description: main(){}%localCompanion.kt
// CHECK JS_IR NATIVE:
// Mangled name: #main(){}
// Public signature: /main|-4284757841571462650[0]
// Public signature debug description: main(){}
fun main(): Unit
// CHECK JVM_IR:
// Mangled name: #main(){}.Foo
// Mangled name for the signature computed from Ir: main(){}
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt
// CHECK JS_IR NATIVE:
// Mangled name: #main(){}.Foo
// Mangled name for the signature: main(){}
local class Foo {
// CHECK JVM_IR:
// Mangled name: #main(){}.Foo.Companion
// Mangled name for the signature computed from Ir: main(){}
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt
// CHECK JS_IR NATIVE:
// Mangled name: #main(){}.Foo.Companion
// Mangled name for the signature: main(){}
local companion object Companion {
// CHECK JVM_IR:
// Mangled name: #main(){}.Foo.Companion#<init>(){}
// Mangled name for the signature computed from Ir: main(){}<init>(){}
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt<init>(){}
// CHECK JS_IR NATIVE:
// Mangled name: #main(){}.Foo.Companion#<init>(){}
// Mangled name for the signature: main(){}<init>(){}
private constructor() /* primary */
// CHECK JVM_IR:
// Mangled name: #main(){}.Foo.Companion#bar(){}
// Mangled name for the signature computed from Ir: main(){}bar(){}
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.ktbar(){}
// CHECK JS_IR NATIVE:
// Mangled name: #main(){}.Foo.Companion#bar(){}
// Mangled name for the signature: main(){}bar(){}
fun bar(): Unit
}
// CHECK JVM_IR:
// Mangled name: #main(){}.Foo#<init>(){}
// Mangled name for the signature computed from Ir: main(){}<init>(){}
// Mangled name for the signature computed from Descriptor: main(){}%localCompanion.kt<init>(){}
// CHECK JS_IR NATIVE:
// Mangled name: #main(){}.Foo#<init>(){}
// Mangled name for the signature: main(){}<init>(){}
constructor() /* primary */
}