LL API: fix kt -> fir mapping for KtValueArgumentList
This commit is contained in:
committed by
teamcityserver
parent
f6a97cdec6
commit
c266d3e075
+8
@@ -0,0 +1,8 @@
|
||||
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtValueArgumentList
|
||||
|
||||
public annotation class Annotation(val name: String)
|
||||
|
||||
@Annotation<expr>("y")</expr>
|
||||
fun x() {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtValueArgumentList
|
||||
FIR element: FirResolvedArgumentList
|
||||
|
||||
FIR element rendered:
|
||||
String(y)
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtValueArgumentList
|
||||
|
||||
fun callMe(x: Int, y: String) {
|
||||
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
callMe<expr>(1, "2")</expr>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtValueArgumentList
|
||||
FIR element: FirResolvedArgumentList
|
||||
|
||||
FIR element rendered:
|
||||
Int(1)String(2)
|
||||
idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/calls/invokeCallArgumentList.kt
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtValueArgumentList
|
||||
|
||||
fun foo(f: (Int, String) -> Unit) {
|
||||
f<expr>(1, "2")</expr>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtValueArgumentList
|
||||
FIR element: FirResolvedArgumentList
|
||||
|
||||
FIR element rendered:
|
||||
Int(1)String(2)
|
||||
+28
@@ -39,6 +39,12 @@ public class GetOrBuildFirTestGenerated extends AbstractGetOrBuildFirTest {
|
||||
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/annotations/annotationApplicationArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationApplicationArgumentList.kt")
|
||||
public void testAnnotationApplicationArgumentList() throws Exception {
|
||||
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/annotations/annotationApplicationArgumentList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationApplicationCallExpression.kt")
|
||||
public void testAnnotationApplicationCallExpression() throws Exception {
|
||||
@@ -58,6 +64,28 @@ public class GetOrBuildFirTestGenerated extends AbstractGetOrBuildFirTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/calls")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Calls {
|
||||
@Test
|
||||
public void testAllFilesPresentInCalls() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/calls"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionCallArgumentList.kt")
|
||||
public void testFunctionCallArgumentList() throws Exception {
|
||||
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/calls/functionCallArgumentList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invokeCallArgumentList.kt")
|
||||
public void testInvokeCallArgumentList() throws Exception {
|
||||
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/calls/invokeCallArgumentList.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/inImport")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user