[Analysis API] Ignore FirClassUseSiteMemberScope scopes in KtFirReferenceShortener
Those scopes always contain all nested classifiers, while only some of them are available without explicit import. There are other, more reliable scopes (like FirNestedClassifierScopeWithSubstitution) which are stricter about which classifiers they recognise as valid ^KTIJ-24684 Fixed ^KTIJ-24662 Fixed
This commit is contained in:
+36
@@ -196,6 +196,42 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerTestGenera
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClass3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassFromSupertypes.kt")
|
||||
public void testNestedClassFromSupertypes() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClassFromSupertypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassFromSupertypes2.kt")
|
||||
public void testNestedClassFromSupertypes2() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClassFromSupertypes2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassFromSupertypes3.kt")
|
||||
public void testNestedClassFromSupertypes3() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClassFromSupertypes3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassFromSupertypes4.kt")
|
||||
public void testNestedClassFromSupertypes4() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClassFromSupertypes4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassFromSupertypes5.kt")
|
||||
public void testNestedClassFromSupertypes5() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClassFromSupertypes5.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassFromSupertypes6.kt")
|
||||
public void testNestedClassFromSupertypes6() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/nestedClassFromSupertypes6.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parameterTypeTopLevelTypeLoses.kt")
|
||||
public void testParameterTypeTopLevelTypeLoses() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user