Add SIR builder and printer for classes #KT-65905 fixed

Merge-request: KT-MR-14478
Merged-by: Artem Olkov <artem.olkov@jetbrains.com>
This commit is contained in:
Artem Olkov
2024-02-26 14:30:07 +00:00
committed by Space Team
parent febac0dd5f
commit e4acb396ba
22 changed files with 366 additions and 9 deletions
@@ -0,0 +1,4 @@
import KotlinBridges
public class Foo {
}
@@ -0,0 +1,4 @@
class Foo {
class INSIDE_CLASS // this should be ignored currently
}
@@ -0,0 +1,28 @@
public annotation class OptIn
enum ENUM {
class INSIDE_ENUM
}
interface OUTSIDE_PROTO {
class INSIDE_PROTO
}
class INHERITANCE_COUPLE : OUTSIDE_PROTO.INSIDE_PROTO, OUTSIDE_PROTO
class INHERITANCE_SINGLE_PROTO : OUTSIDE_PROTO.INSIDE_PROTO
open class OPEN_CLASS
class INHERITANCE_SINGLE_CLASS : OPEN_CLASS
object OBJECT
data class DATA_CLASS(val a: Int)
inline class INLINE_CLASS(val a: Int)
abstract class ABSTRACT_CLASS
sealed class SEALED {
object O : SEALED()
}
@@ -0,0 +1,3 @@
package namespace
class NAMESPACED_CLASS