[Analysis API] Unwrap anonymous function expressions in reference shortener

Anonymous functions are additionally wrapped into an expression

^KTIJ-26629 Fixed
^KTIJ-26597 Fixed
This commit is contained in:
Roman Golyshev
2023-08-14 12:55:40 +02:00
committed by teamcity
parent bddc18e463
commit 48433bf9fd
9 changed files with 104 additions and 5 deletions
@@ -52,6 +52,24 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerTestGenera
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/annotaiton.kt");
}
@Test
@TestMetadata("anonymousFunction_annotation.kt")
public void testAnonymousFunction_annotation() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/anonymousFunction_annotation.kt");
}
@Test
@TestMetadata("anonymousFunction_receiverType.kt")
public void testAnonymousFunction_receiverType() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/anonymousFunction_receiverType.kt");
}
@Test
@TestMetadata("anonymousFunction_returnType.kt")
public void testAnonymousFunction_returnType() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/anonymousFunction_returnType.kt");
}
@Test
@TestMetadata("callInsideScriptExpression.kts")
public void testCallInsideScriptExpression() throws Exception {