KT-64186 [LL] Correctly handle anonymous objects' headers in ContextCollector

This bug spilled into reference shortener, and then to
"redundant qualifier inspection" and code completion from there;
it caused KTIJ-26024 to reproduce again (but only for anonymous objects)

^KT-64186 Fixed
This commit is contained in:
Roman Golyshev
2023-12-07 23:42:51 +01:00
committed by Space Team
parent 2eb1e65bbf
commit 78f492394c
16 changed files with 231 additions and 1 deletions
@@ -844,12 +844,36 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerTestGenera
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses/classHeaderPositions/superTypeConstructorArgument_nested.kt");
}
@Test
@TestMetadata("superTypeConstructorArgument_nested_objectLiteral.kt")
public void testSuperTypeConstructorArgument_nested_objectLiteral() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses/classHeaderPositions/superTypeConstructorArgument_nested_objectLiteral.kt");
}
@Test
@TestMetadata("superTypeConstructorArgument_objectLiteral.kt")
public void testSuperTypeConstructorArgument_objectLiteral() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses/classHeaderPositions/superTypeConstructorArgument_objectLiteral.kt");
}
@Test
@TestMetadata("superTypeConstructor_nested.kt")
public void testSuperTypeConstructor_nested() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses/classHeaderPositions/superTypeConstructor_nested.kt");
}
@Test
@TestMetadata("superTypeConstructor_nested_objectLiteral.kt")
public void testSuperTypeConstructor_nested_objectLiteral() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses/classHeaderPositions/superTypeConstructor_nested_objectLiteral.kt");
}
@Test
@TestMetadata("superTypeConstructor_objectLiteral.kt")
public void testSuperTypeConstructor_objectLiteral() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClasses/classHeaderPositions/superTypeConstructor_objectLiteral.kt");
}
@Test
@TestMetadata("superTypeDelegation.kt")
public void testSuperTypeDelegation() throws Exception {