[KLIB tool] Update KLIB metadata dump tests
^KT-62340
This commit is contained in:
committed by
Space Team
parent
f9f97f2050
commit
07767f88e2
Vendored
+95
-27
@@ -1,30 +1,98 @@
|
||||
package test {
|
||||
// Signature: test/C1|null[0]
|
||||
@anno(x = "top level class") class C1 @anno(x = "constructor") constructor() {
|
||||
// Signature: test/C1.p3|{}p3[0]
|
||||
@anno(x = "member property") val p3: Nothing?
|
||||
// Signature: test/C1.v4|@kotlin.Int{}v4[0]
|
||||
@anno(x = "member extension property") val Int.v4: Int
|
||||
// Signature: test/C1.f3|f3(kotlin.Int){}[0]
|
||||
@anno(x = "member function") fun f3(@anno(x = "member function parameter") p: Int)
|
||||
// Signature: test/C1.f4|f4@kotlin.String(){}[0]
|
||||
@anno(x = "member extension function") fun String.f4()
|
||||
// Signature: test/C1.C2|null[0]
|
||||
@anno(x = "nested class") class C2 constructor()
|
||||
// Signature: test/C1.Companion|null[0]
|
||||
@anno(x = "companion object") companion object
|
||||
library {
|
||||
// module name: <annotationTargets.kt>
|
||||
|
||||
library fragment {
|
||||
// package name: test
|
||||
|
||||
// class name: test/C1
|
||||
// class name: test/C1.C2
|
||||
// class name: test/C1.Companion
|
||||
// class name: test/anno
|
||||
|
||||
// signature: test/C1|null[0]
|
||||
@test/anno(x = "top level class")
|
||||
public final class test/C1 : kotlin/Any {
|
||||
|
||||
// signature: test/C1.<init>|<init>(){}[0]
|
||||
@test/anno(x = "constructor")
|
||||
public constructor()
|
||||
|
||||
// signature: test/C1.f3|f3(kotlin.Int){}[0]
|
||||
@test/anno(x = "member function")
|
||||
public final fun f3(@test/anno(x = "member function parameter") p: kotlin/Int): kotlin/Unit
|
||||
|
||||
// signature: test/C1.f4|f4@kotlin.String(){}[0]
|
||||
@test/anno(x = "member extension function")
|
||||
public final fun kotlin/String.f4(): kotlin/Unit
|
||||
|
||||
// signature: test/C1.p3|{}p3[0]
|
||||
@test/anno(x = "member property")
|
||||
public final val p3: kotlin/Nothing?
|
||||
// signature: test/C1.p3.<get-p3>|<get-p3>(){}[0]
|
||||
public final get
|
||||
|
||||
// signature: test/C1.v4|@kotlin.Int{}v4[0]
|
||||
@test/anno(x = "member extension property")
|
||||
public final val kotlin/Int.v4: kotlin/Int
|
||||
// signature: test/C1.v4.<get-v4>|<get-v4>@kotlin.Int(){}[0]
|
||||
public final /* non-default */ get
|
||||
|
||||
// companion object: Companion
|
||||
|
||||
// nested class: C2
|
||||
|
||||
// nested class: Companion
|
||||
}
|
||||
// Signature: test/anno|null[0]
|
||||
annotation class anno constructor(x: String) : Annotation {
|
||||
// Signature: test/anno.x|{}x[0]
|
||||
val x: String
|
||||
|
||||
// signature: test/C1.C2|null[0]
|
||||
@test/anno(x = "nested class")
|
||||
public final class test/C1.C2 : kotlin/Any {
|
||||
|
||||
// signature: test/C1.C2.<init>|<init>(){}[0]
|
||||
public constructor()
|
||||
}
|
||||
// Signature: test/f1|f1(kotlin.Int){}[0]
|
||||
@anno(x = "top level function") fun f1(@anno(x = "top level function parameter") p: Int)
|
||||
// Signature: test/f2|f2@kotlin.Long(kotlin.Int){}[0]
|
||||
@anno(x = "extension function") fun Long.f2(@anno(x = "extension function parameter") p: Int)
|
||||
// Signature: test/p1|{}p1[0]
|
||||
@anno(x = "top level property") val p1: Nothing?
|
||||
// Signature: test/p2|@kotlin.Double{}p2[0]
|
||||
@anno(x = "extension property") val Double.p2: Double
|
||||
|
||||
// signature: test/C1.Companion|null[0]
|
||||
@test/anno(x = "companion object")
|
||||
public final companion object test/C1.Companion : kotlin/Any {
|
||||
|
||||
// signature: test/C1.Companion.<init>|<init>(){}[0]
|
||||
private constructor()
|
||||
}
|
||||
|
||||
// signature: test/anno|null[0]
|
||||
public final annotation class test/anno : kotlin/Annotation {
|
||||
|
||||
// signature: test/anno.<init>|<init>(kotlin.String){}[0]
|
||||
public constructor(x: kotlin/String)
|
||||
|
||||
// signature: test/anno.x|{}x[0]
|
||||
public final val x: kotlin/String
|
||||
// signature: test/anno.x.<get-x>|<get-x>(){}[0]
|
||||
public final get
|
||||
}
|
||||
|
||||
package {
|
||||
|
||||
// signature: test/f1|f1(kotlin.Int){}[0]
|
||||
@test/anno(x = "top level function")
|
||||
public final fun f1(@test/anno(x = "top level function parameter") p: kotlin/Int): kotlin/Unit
|
||||
|
||||
// signature: test/f2|f2@kotlin.Long(kotlin.Int){}[0]
|
||||
@test/anno(x = "extension function")
|
||||
public final fun kotlin/Long.f2(@test/anno(x = "extension function parameter") p: kotlin/Int): kotlin/Unit
|
||||
|
||||
// signature: test/p1|{}p1[0]
|
||||
@test/anno(x = "top level property")
|
||||
public final val p1: kotlin/Nothing?
|
||||
// signature: test/p1.<get-p1>|<get-p1>(){}[0]
|
||||
public final get
|
||||
|
||||
// signature: test/p2|@kotlin.Double{}p2[0]
|
||||
@test/anno(x = "extension property")
|
||||
public final val kotlin/Double.p2: kotlin/Double
|
||||
// signature: test/p2.<get-p2>|<get-p2>@kotlin.Double(){}[0]
|
||||
public final /* non-default */ get
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user