KT-61890 [AA] Add test for ContextCollector at loop variable position
This turns out to be important for conflict resolution in postfix completion in K2 IDE (see `KotlinDeclarationNameValidator`)
This commit is contained in:
+6
@@ -100,6 +100,12 @@ public class FirIdeDependentAnalysisSourceModuleScopeContextForPositionTestGener
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/errorType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("forLoopVariable.kt")
|
||||
public void testForLoopVariable() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/forLoopVariable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kDocOnClass.kt")
|
||||
public void testKDocOnClass() throws Exception {
|
||||
|
||||
+6
@@ -100,6 +100,12 @@ public class FirIdeNormalAnalysisSourceModuleScopeContextForPositionTestGenerate
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/errorType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("forLoopVariable.kt")
|
||||
public void testForLoopVariable() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/forLoopVariable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kDocOnClass.kt")
|
||||
public void testKDocOnClass() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user