[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
@@ -1,5 +1,6 @@
interface Visitor {
abstract fun visit()
fun visitArray(): Visitor? {
return null
}
@@ -1,5 +1,6 @@
interface Visitor {
abstract fun visit()
fun visitArray(): Visitor? {
return null
}
@@ -9,7 +9,9 @@ sealed class ArrayMap<T : Any> : Iterable<T> {
abstract get
abstract operator fun set(index: Int, value: T)
abstract operator fun get(index: Int): T?
abstract fun copy(): ArrayMap<T>
}
@@ -9,7 +9,9 @@ sealed class ArrayMap<T : Any> : Iterable<T> {
abstract get
abstract operator fun set(index: Int, value: T)
abstract operator fun get(index: Int): T?
abstract fun copy(): ArrayMap<T>
}
@@ -4,7 +4,9 @@ interface IrType {
interface TypeRemapper {
abstract fun enterScope(irTypeParametersContainer: IrTypeParametersContainer)
abstract fun remapType(type: IrType): IrType
abstract fun leaveScope()
}
@@ -4,7 +4,9 @@ interface IrType {
interface TypeRemapper {
abstract fun enterScope(irTypeParametersContainer: IrTypeParametersContainer)
abstract fun remapType(type: IrType): IrType
abstract fun leaveScope()
}