[K/JS] Support companion objects in external and exported declarations

This commit is contained in:
Artem Kobzar
2024-02-27 16:30:13 +00:00
committed by Space Team
parent 5cda3fba12
commit 3429cbd321
51 changed files with 551 additions and 56 deletions
@@ -2605,6 +2605,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
runTest("js/js.translator/testData/box/esModules/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -2699,6 +2705,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
runTest("js/js.translator/testData/box/esModules/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("jsExternalInheritorsOnly.kt")
public void testJsExternalInheritorsOnly() {
@@ -7524,6 +7536,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
runTest("js/js.translator/testData/box/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -7660,6 +7678,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
runTest("js/js.translator/testData/box/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("kt39378.kt")
public void testKt39378() {
@@ -7836,6 +7860,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
runTest("js/js.translator/testData/box/jsQualifier/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsQualifier/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() {
@@ -2499,6 +2499,12 @@ public class FirLightTreeJsBoxTestGenerated extends AbstractFirLightTreeJsBoxTes
runTest("js/js.translator/testData/box/esModules/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -2593,6 +2599,12 @@ public class FirLightTreeJsBoxTestGenerated extends AbstractFirLightTreeJsBoxTes
runTest("js/js.translator/testData/box/esModules/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("jsExternalInheritorsOnly.kt")
public void testJsExternalInheritorsOnly() {
@@ -7418,6 +7430,12 @@ public class FirLightTreeJsBoxTestGenerated extends AbstractFirLightTreeJsBoxTes
runTest("js/js.translator/testData/box/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -7554,6 +7572,12 @@ public class FirLightTreeJsBoxTestGenerated extends AbstractFirLightTreeJsBoxTes
runTest("js/js.translator/testData/box/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("kt39378.kt")
public void testKt39378() {
@@ -7730,6 +7754,12 @@ public class FirLightTreeJsBoxTestGenerated extends AbstractFirLightTreeJsBoxTes
runTest("js/js.translator/testData/box/jsQualifier/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsQualifier/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() {
@@ -2499,6 +2499,12 @@ public class FirPsiJsBoxTestGenerated extends AbstractFirPsiJsBoxTest {
runTest("js/js.translator/testData/box/esModules/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -2593,6 +2599,12 @@ public class FirPsiJsBoxTestGenerated extends AbstractFirPsiJsBoxTest {
runTest("js/js.translator/testData/box/esModules/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("jsExternalInheritorsOnly.kt")
public void testJsExternalInheritorsOnly() {
@@ -7418,6 +7430,12 @@ public class FirPsiJsBoxTestGenerated extends AbstractFirPsiJsBoxTest {
runTest("js/js.translator/testData/box/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -7554,6 +7572,12 @@ public class FirPsiJsBoxTestGenerated extends AbstractFirPsiJsBoxTest {
runTest("js/js.translator/testData/box/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("kt39378.kt")
public void testKt39378() {
@@ -7730,6 +7754,12 @@ public class FirPsiJsBoxTestGenerated extends AbstractFirPsiJsBoxTest {
runTest("js/js.translator/testData/box/jsQualifier/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsQualifier/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() {
@@ -2605,6 +2605,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/esModules/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -2699,6 +2705,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/esModules/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("jsExternalInheritorsOnly.kt")
public void testJsExternalInheritorsOnly() {
@@ -7524,6 +7536,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -7660,6 +7678,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("kt39378.kt")
public void testKt39378() {
@@ -7836,6 +7860,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/jsQualifier/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsQualifier/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() {
@@ -2499,6 +2499,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/esModules/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -2593,6 +2599,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/esModules/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/esModules/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("jsExternalInheritorsOnly.kt")
public void testJsExternalInheritorsOnly() {
@@ -7418,6 +7430,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/jsExport/exportedDefaultStub.kt");
}
@Test
@TestMetadata("interfaceWithCompanion.kt")
public void testInterfaceWithCompanion() {
runTest("js/js.translator/testData/box/jsExport/interfaceWithCompanion.kt");
}
@Test
@TestMetadata("jsExportInClass.kt")
public void testJsExportInClass() {
@@ -7554,6 +7572,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/jsModule/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsModule/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("kt39378.kt")
public void testKt39378() {
@@ -7730,6 +7754,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/jsQualifier/interfaces.kt");
}
@Test
@TestMetadata("interfacesWithCompanion.kt")
public void testInterfacesWithCompanion() {
runTest("js/js.translator/testData/box/jsQualifier/interfacesWithCompanion.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() {