Files
kotlin-fork/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.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

96 lines
4.6 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: {}registrationMap
// Mangled name for the signature: {}registrationMap
// Public signature: [ File 'ClashResolutionDescriptor.kt' <- /registrationMap|8184441143918876435[0] ]
private val registrationMap: HashMap<Type, Any>
// CHECK JVM_IR:
// Mangled name: #<get-registrationMap>(){}java.util.HashMap<java.lang.reflect.Type,kotlin.Any>
// Mangled name for the signature: <get-registrationMap>(){}java.util.HashMap<java.lang.reflect.Type,kotlin.Any>
// Public signature: [ File 'ClashResolutionDescriptor.kt' <- /registrationMap.<get-registrationMap>|3119298927482099509[0] ]
private get
// CHECK:
// Mangled name: ClashResolutionDescriptor
// Public signature: /ClashResolutionDescriptor|null[0]
class ClashResolutionDescriptor<E : PlatformSpecificExtension<E>> {
// CHECK:
// Mangled name: ClashResolutionDescriptor{}resolver
// Public signature: /ClashResolutionDescriptor.resolver|8912854618409758647[0]
// Public signature debug description: {}resolver
private val resolver: PlatformExtensionsClashResolver<E>
// CHECK JVM_IR:
// Mangled name: ClashResolutionDescriptor#<get-resolver>(){}PlatformExtensionsClashResolver<1:0>
// Public signature: /ClashResolutionDescriptor.resolver.<get-resolver>|3490691458597764818[0]
// Public signature debug description: <get-resolver>(){}PlatformExtensionsClashResolver<1:0>
private get
// CHECK:
// Mangled name: ClashResolutionDescriptor{}clashedComponents
// Public signature: /ClashResolutionDescriptor.clashedComponents|1468680588633000446[0]
// Public signature debug description: {}clashedComponents
private val clashedComponents: List<ComponentDescriptor>
// CHECK JVM_IR:
// Mangled name: ClashResolutionDescriptor#<get-clashedComponents>(){}kotlin.collections.List<ComponentDescriptor>
// Public signature: /ClashResolutionDescriptor.clashedComponents.<get-clashedComponents>|-246985097775886667[0]
// Public signature debug description: <get-clashedComponents>(){}kotlin.collections.List<ComponentDescriptor>
private get
// CHECK:
// Mangled name: ClashResolutionDescriptor#<init>(ComponentContainer;PlatformExtensionsClashResolver<1:0>;kotlin.collections.List<ComponentDescriptor>){}
// Public signature: /ClashResolutionDescriptor.<init>|5507710378195680379[0]
// Public signature debug description: <init>(ComponentContainer;PlatformExtensionsClashResolver<1:0>;kotlin.collections.List<ComponentDescriptor>){}
constructor(container: ComponentContainer, resolver: PlatformExtensionsClashResolver<E>, clashedComponents: List<ComponentDescriptor>) /* primary */
}
// CHECK:
// Mangled name: PlatformExtensionsClashResolver
// Public signature: /PlatformExtensionsClashResolver|null[0]
abstract class PlatformExtensionsClashResolver<E : PlatformSpecificExtension<E>> {
// CHECK:
// Mangled name: PlatformExtensionsClashResolver{}applicableTo
// Public signature: /PlatformExtensionsClashResolver.applicableTo|6029537505993816165[0]
// Public signature debug description: {}applicableTo
val applicableTo: Class<E>
// CHECK JVM_IR:
// Mangled name: PlatformExtensionsClashResolver#<get-applicableTo>(){}java.lang.Class<1:0>
// Public signature: /PlatformExtensionsClashResolver.applicableTo.<get-applicableTo>|7304285895281171874[0]
// Public signature debug description: <get-applicableTo>(){}java.lang.Class<1:0>
get
// CHECK:
// Mangled name: PlatformExtensionsClashResolver#<init>(java.lang.Class<1:0>){}
// Public signature: /PlatformExtensionsClashResolver.<init>|5119314677210520097[0]
// Public signature debug description: <init>(java.lang.Class<1:0>){}
constructor(applicableTo: Class<E>) /* primary */
}
// CHECK:
// Mangled name: ComponentContainer
// Public signature: /ComponentContainer|null[0]
interface ComponentContainer {
}
// CHECK:
// Mangled name: ComponentDescriptor
// Public signature: /ComponentDescriptor|null[0]
interface ComponentDescriptor {
}
// CHECK:
// Mangled name: PlatformSpecificExtension
// Public signature: /PlatformSpecificExtension|null[0]
interface PlatformSpecificExtension<S : PlatformSpecificExtension<S>> {
}
// CHECK:
// Mangled name: #resolveClashesIfAny(ComponentContainer;kotlin.collections.List<PlatformExtensionsClashResolver<*>>){}
// Public signature: /resolveClashesIfAny|1954676013070349118[0]
// Public signature debug description: resolveClashesIfAny(ComponentContainer;kotlin.collections.List<PlatformExtensionsClashResolver<*>>){}
fun resolveClashesIfAny(container: ComponentContainer, clashResolvers: List<PlatformExtensionsClashResolver<*>>): Unit