[KLIB] API for dumping KLIB ABI

^KT-54402
This commit is contained in:
Dmitriy Dolovov
2023-06-06 18:56:48 +02:00
committed by Space Team
parent 8d9954c0b4
commit 5171d92fb9
97 changed files with 8201 additions and 1 deletions
+67
View File
@@ -0,0 +1,67 @@
package classifiers.test
class RegularClass(val property: String) {
fun function(): String = ""
}
annotation class AnnotationClass(val property: String) {
//fun function(): String = ""
}
value class ValueClass(val property: String) {
fun function(): String = ""
}
data class DataClass(val property: String) {
fun function(): String = ""
}
object Object {
val property: String = ""
fun function(): String = ""
}
interface Interface {
val property: String
fun function(): String
}
fun interface FunctionInterface {
//val property: String
fun function(): String
}
enum class EnumClassWithoutEntryClasses {
FOO_NO_CLASS, BAR_NO_CLASS, BAZ_NO_CLASS
}
enum class EnumClassWithEntryClasses {
FOO_HAS_CLASS { override fun function() = "" },
BAR_NO_CLASS,
BAZ_HAS_CLASS { override fun function() = "" };
open fun function(): String = ""
}
class CompanionHolder1 {
companion object // default name
}
class CompanionHolder2 {
companion object Companion // custom name
}
class CompanionHolder3 {
companion object DEFAULT // custom name
}
class CompanionHolder4 {
object Object // a regular nested object
}
class TopLevelClass {
class Nested {
class Nested
inner class Inner
}
inner class Inner {
inner class Inner
}
}