KT-65425 [SLC] Correctly compute getQualifiedName for generated classes

Since the declarations generated by compiler plugins do not have proper
PSI (`classOrObjectDeclaration` in this case), we need to resort to
symbols for such declarations to compute the proper qualified name

^KT-65425 Fixed
This commit is contained in:
Roman Golyshev
2024-01-31 10:18:14 +01:00
committed by Space Team
parent 6271f5cbe5
commit a55b8d30fd
12 changed files with 89 additions and 1 deletions
@@ -670,5 +670,10 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
public void testAllOpen() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/withTestCompilerPluginEnabled/allOpen.kt");
}
@TestMetadata("companionWithFoo_companionTypeUsedInJava_ReferenceFromKotlin.kt")
public void testCompanionWithFoo_companionTypeUsedInJava_ReferenceFromKotlin() throws Exception {
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/withTestCompilerPluginEnabled/companionWithFoo_companionTypeUsedInJava_ReferenceFromKotlin.kt");
}
}
}