[FIR2IR] Generate IR declarations in classes in strict order

Order is following:
- declared declarations in declaration (in source) order
- generated declarations in sorted order
This commit is contained in:
Dmitriy Novozhilov
2023-03-13 11:57:27 +02:00
committed by Space Team
parent c961c15729
commit 839026b6fe
15 changed files with 467 additions and 22 deletions
@@ -88,6 +88,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/classes/companionObject.kt");
}
@Test
@TestMetadata("declarationOrder.kt")
public void testDeclarationOrder() throws Exception {
runTest("compiler/testData/ir/irText/classes/declarationOrder.kt");
}
@Test
@TestMetadata("delegatedGenericImplementation.kt")
public void testDelegatedGenericImplementation() throws Exception {
@@ -88,6 +88,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/classes/companionObject.kt");
}
@Test
@TestMetadata("declarationOrder.kt")
public void testDeclarationOrder() throws Exception {
runTest("compiler/testData/ir/irText/classes/declarationOrder.kt");
}
@Test
@TestMetadata("delegatedGenericImplementation.kt")
public void testDelegatedGenericImplementation() throws Exception {
@@ -88,6 +88,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/classes/companionObject.kt");
}
@Test
@TestMetadata("declarationOrder.kt")
public void testDeclarationOrder() throws Exception {
runTest("compiler/testData/ir/irText/classes/declarationOrder.kt");
}
@Test
@TestMetadata("delegatedGenericImplementation.kt")
public void testDelegatedGenericImplementation() throws Exception {