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:
+4
@@ -0,0 +1,4 @@
|
||||
import KotlinBridges
|
||||
|
||||
public class Foo {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
class Foo {
|
||||
class INSIDE_CLASS // this should be ignored currently
|
||||
}
|
||||
+28
@@ -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()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package namespace
|
||||
|
||||
class NAMESPACED_CLASS
|
||||
+6
@@ -24,6 +24,12 @@ public class SwiftExportRunnerTest extends AbstractSwiftRunnerTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData"), Pattern.compile("^([^\\.]+)$"), null, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classes")
|
||||
public void testClasses() {
|
||||
runTest("native/swift/swift-export-standalone/testData/classes/");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("documentation")
|
||||
public void testDocumentation() {
|
||||
|
||||
Reference in New Issue
Block a user