[FIR] don't transform analyzed lambda

Inside `transformDeclarationContent` current tower data context is saved. Previously, stored context could be incomplete, because `dataFlowAnalyzer.enterFunction(function)` wasn't called in all cases.
^KTIJ-26419 Fixed
This commit is contained in:
aleksandrina-streltsova
2023-07-28 15:34:15 +03:00
committed by Space Team
parent 673ac2227a
commit 9548486b55
7 changed files with 390 additions and 9 deletions
@@ -82,6 +82,12 @@ public class FirStandaloneNormalAnalysisSourceModuleScopeContextForPositionTestG
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/smartCastInAnonymousFunction.kt");
}
@Test
@TestMetadata("smartCastInAnonymousFunctionInWhenEntry.kt")
public void testSmartCastInAnonymousFunctionInWhenEntry() throws Exception {
runTest("analysis/analysis-api/testData/components/scopeProvider/scopeContextForPosition/smartCastInAnonymousFunctionInWhenEntry.kt");
}
@Test
@TestMetadata("smartCastInWhenEntryCondition.kt")
public void testSmartCastInWhenEntryCondition() throws Exception {