[IR] Add body printing strategy to Kotlin-like dumper

This commit is contained in:
Sergej Jaskiewicz
2023-05-01 18:55:42 +02:00
committed by Space Team
parent ca8af7786e
commit 89ff7bd0db
36 changed files with 165 additions and 39 deletions
@@ -6,6 +6,7 @@ abstract class AbstractClass {
}
abstract fun abstractFun()
abstract val abstractVal: Int
abstract get
@@ -17,6 +18,7 @@ abstract class AbstractClass {
interface Interface {
abstract fun abstractFun()
abstract val abstractVal: Int
abstract get
@@ -62,6 +62,7 @@ class C {
interface NestedInterface {
abstract fun foo()
fun bar() {
return <this>.foo()
}
@@ -1,5 +1,6 @@
interface IBase<A : Any?> {
abstract fun <B : Any?> foo(a: A, b: B)
abstract val <C : Any?> C.id: Map<A, C>?
abstract get
@@ -1,5 +1,6 @@
interface IBase<A : Any?> {
abstract fun <B : Any?> foo(a: A, b: B)
abstract val <C : Any?> C.id: Map<A, C>?
abstract get
@@ -1,6 +1,8 @@
interface IBase {
abstract fun foo(x: Int, s: String)
abstract fun bar(): Int
abstract fun String.qux()
}
@@ -1,6 +1,8 @@
interface IBase {
abstract fun foo(x: Int, s: String)
abstract fun bar(): Int
abstract fun String.qux()
}
@@ -1,5 +1,6 @@
interface IFooBar {
abstract fun foo()
abstract fun bar()
}
@@ -1,5 +1,6 @@
interface IFooBar {
abstract fun foo()
abstract fun bar()
}
+2
View File
@@ -66,6 +66,7 @@ abstract enum class TestEnum3 : Enum<TestEnum3> {
}
abstract fun foo()
fun values(): Array<TestEnum3> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): TestEnum3 /* Synthetic body for ENUM_VALUEOF */
@@ -122,6 +123,7 @@ abstract enum class TestEnum4 : Enum<TestEnum4> {
}
abstract fun foo()
fun values(): Array<TestEnum4> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): TestEnum4 /* Synthetic body for ENUM_VALUEOF */
@@ -142,6 +142,7 @@ abstract enum class TestAbstractEnum1 : Enum<TestAbstractEnum1> {
}
abstract fun foo()
fun values(): Array<TestAbstractEnum1> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): TestAbstractEnum1 /* Synthetic body for ENUM_VALUEOF */
@@ -96,6 +96,7 @@ abstract enum class Test2 : Enum<Test2> {
}
abstract fun foo()
fun values(): Array<Test2> /* Synthetic body for ENUM_VALUES */
fun valueOf(value: String): Test2 /* Synthetic body for ENUM_VALUEOF */
@@ -16,6 +16,7 @@ open class Base {
interface BaseI {
abstract fun foo()
abstract val bar: String
abstract get