[KLIB tool] Update KLIB metadata dump tests

^KT-62340
This commit is contained in:
Dmitriy Dolovov
2024-02-09 15:23:40 +01:00
committed by Space Team
parent f9f97f2050
commit 07767f88e2
170 changed files with 9177 additions and 2207 deletions
@@ -1,32 +1,160 @@
package test {
annotation class AnnoBackingField constructor() : Annotation
annotation class AnnoClass constructor() : Annotation
@Target(allowedTargets = {AnnotationTarget.TYPE_PARAMETER}) annotation class AnnoClassTypeParameter constructor() : Annotation
@Target(allowedTargets = {AnnotationTarget.TYPE}) annotation class AnnoClassUsageTypeParameter constructor() : Annotation
annotation class AnnoConstructor constructor() : Annotation
annotation class AnnoConstructorParameter constructor() : Annotation
annotation class AnnoDelegatedField constructor() : Annotation
annotation class AnnoFunction constructor() : Annotation
annotation class AnnoFunctionExtensionReceiver constructor() : Annotation
annotation class AnnoFunctionParam constructor() : Annotation
@Target(allowedTargets = {AnnotationTarget.TYPE_PARAMETER}) annotation class AnnoFunctionTypeParameter constructor() : Annotation
annotation class AnnoGetter constructor() : Annotation
annotation class AnnoProperty constructor() : Annotation
annotation class AnnoPropertyExtensionReceiver constructor() : Annotation
annotation class AnnoSetParam constructor() : Annotation
annotation class AnnoSetParam2 constructor() : Annotation
annotation class AnnoSetter constructor() : Annotation
annotation class AnnoSetter2 constructor() : Annotation
class B<@AnnoClassTypeParameter T> constructor()
@AnnoClass class Foo @AnnoConstructor constructor(@AnnoConstructorParameter i: Int) {
@delegate:AnnoDelegatedField val immutableProp: Int
var mutableProp: Int
@AnnoSetter2 set
@AnnoProperty @field:AnnoBackingField var prop: Int
@AnnoGetter get
@AnnoSetter set
library {
// module name: <annotations.kt>
library fragment {
// package name: test
// class name: test/AnnoBackingField
// class name: test/AnnoClass
// class name: test/AnnoClassTypeParameter
// class name: test/AnnoClassUsageTypeParameter
// class name: test/AnnoConstructor
// class name: test/AnnoConstructorParameter
// class name: test/AnnoDelegatedField
// class name: test/AnnoFunction
// class name: test/AnnoFunctionExtensionReceiver
// class name: test/AnnoFunctionParam
// class name: test/AnnoFunctionTypeParameter
// class name: test/AnnoGetter
// class name: test/AnnoProperty
// class name: test/AnnoPropertyExtensionReceiver
// class name: test/AnnoSetParam
// class name: test/AnnoSetParam2
// class name: test/AnnoSetter
// class name: test/AnnoSetter2
// class name: test/B
// class name: test/Foo
public final annotation class test/AnnoBackingField : kotlin/Annotation {
public constructor()
}
@AnnoPropertyExtensionReceiver val Foo.extProp: Int
@AnnoFunction fun @receiver:AnnoFunctionExtensionReceiver Foo.extfun(@AnnoFunctionParam x: Int)
fun <@AnnoFunctionTypeParameter T> f(x: B<@AnnoClassUsageTypeParameter Int>)
}
public final annotation class test/AnnoClass : kotlin/Annotation {
public constructor()
}
@kotlin/annotation/Target(allowedTargets = [kotlin/annotation/AnnotationTarget.TYPE_PARAMETER])
public final annotation class test/AnnoClassTypeParameter : kotlin/Annotation {
public constructor()
}
@kotlin/annotation/Target(allowedTargets = [kotlin/annotation/AnnotationTarget.TYPE])
public final annotation class test/AnnoClassUsageTypeParameter : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoConstructor : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoConstructorParameter : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoDelegatedField : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoFunction : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoFunctionExtensionReceiver : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoFunctionParam : kotlin/Annotation {
public constructor()
}
@kotlin/annotation/Target(allowedTargets = [kotlin/annotation/AnnotationTarget.TYPE_PARAMETER])
public final annotation class test/AnnoFunctionTypeParameter : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoGetter : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoProperty : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoPropertyExtensionReceiver : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoSetParam : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoSetParam2 : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoSetter : kotlin/Annotation {
public constructor()
}
public final annotation class test/AnnoSetter2 : kotlin/Annotation {
public constructor()
}
public final class test/B<@test/AnnoClassTypeParameter T#0 /* T */> : kotlin/Any {
public constructor()
}
@test/AnnoClass
public final class test/Foo : kotlin/Any {
@test/AnnoConstructor
public constructor(@test/AnnoConstructorParameter i: kotlin/Int)
public final /* delegated */ val immutableProp: kotlin/Int
public final /* non-default */ get
public final var mutableProp: kotlin/Int
public final get
@test/AnnoSetter2
public final /* non-default */ set(@test/AnnoSetParam2 x: kotlin/Int)
@test/AnnoProperty
public final var prop: kotlin/Int
@test/AnnoGetter
public final /* non-default */ get
@test/AnnoSetter
public final /* non-default */ set(@test/AnnoSetParam x: kotlin/Int)
}
package {
@test/AnnoFunction
public final fun test/Foo.extfun(@test/AnnoFunctionParam x: kotlin/Int): kotlin/Unit
public final fun <@test/AnnoFunctionTypeParameter T#0 /* T */> f(x: test/B<@test/AnnoClassUsageTypeParameter kotlin/Int>): kotlin/Unit
@test/AnnoPropertyExtensionReceiver
public final val test/Foo.extProp: kotlin/Int
public final /* non-default */ get
}
}
}