KTIJ-28080 [AA] Move selection checking to ElementsToShortenCollector.findClassifierQualifierToShorten
This way, even if the whole qualifier is not selected, but some of its parts are, the reference shortener will correctly find and shorten those parts ^KTIJ-28080 Fixed
This commit is contained in:
+30
@@ -418,6 +418,18 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerTestGenera
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/shortenRange/partiallySelectedType2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("partiallySelectedType3.kt")
|
||||
public void testPartiallySelectedType3() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/shortenRange/partiallySelectedType3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("partiallySelectedType4.kt")
|
||||
public void testPartiallySelectedType4() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/shortenRange/partiallySelectedType4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("partiallySelectedTypeQualifier1.kt")
|
||||
public void testPartiallySelectedTypeQualifier1() throws Exception {
|
||||
@@ -430,6 +442,18 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerTestGenera
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/shortenRange/partiallySelectedTypeQualifier2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("partiallySelectedTypeQualifier3.kt")
|
||||
public void testPartiallySelectedTypeQualifier3() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/shortenRange/partiallySelectedTypeQualifier3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("partiallySelectedTypeQualifier4.kt")
|
||||
public void testPartiallySelectedTypeQualifier4() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/shortenRange/partiallySelectedTypeQualifier4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("qualifierOfUnresolvedReference.kt")
|
||||
public void testQualifierOfUnresolvedReference() throws Exception {
|
||||
@@ -628,6 +652,12 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerTestGenera
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/shortenRange/variable_invokeOperator.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("_rootIdePackage_IsNotRemovedIfNotSelected.kt")
|
||||
public void test_rootIdePackage_IsNotRemovedIfNotSelected() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/shortenRange/_rootIdePackage_IsNotRemovedIfNotSelected.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/components/referenceShortener/shortenRange/nestedClasses")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user