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:
Roman Golyshev
2023-11-09 11:10:13 +01:00
committed by teamcity
parent 47a00bf97e
commit d865a44c94
8 changed files with 277 additions and 0 deletions
@@ -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 {
@@ -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 {