[fir2ir] Fix annotation conversion on partial module compilation

Backend requires annotation constructors to be fully resolved for the
'IrConst' default value lowering. However, in the IDE there is usually
no need in complete annotation class resolution.

^KTIJ-27061 Fixed
This commit is contained in:
Yan Zhulanow
2023-09-14 19:06:18 +09:00
committed by Space Team
parent 480bac7537
commit 40ecd4bc1e
7 changed files with 55 additions and 0 deletions
@@ -79,6 +79,12 @@ public class FirIdeNormalAnalysisLibrarySourceModuleCompilerFacilityTestGenerate
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("annotationUsage.kt")
public void testAnnotationUsage() throws Exception {
runTest("analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/annotationUsage.kt");
}
@Test
@TestMetadata("customName.kt")
public void testCustomName() throws Exception {
@@ -79,6 +79,12 @@ public class FirIdeNormalAnalysisSourceModuleCompilerFacilityTestGenerated exten
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("annotationUsage.kt")
public void testAnnotationUsage() throws Exception {
runTest("analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/annotationUsage.kt");
}
@Test
@TestMetadata("customName.kt")
public void testCustomName() throws Exception {