LL API: add kt -> fir mapping tests for types
This commit is contained in:
committed by
teamcityserver
parent
1423aa2c43
commit
230fce65e5
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
fun x(): <expr>(Int) -> String</expr> = TODO()
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtTypeReference
|
||||
FIR element: FirResolvedTypeRefImpl
|
||||
|
||||
FIR element rendered:
|
||||
R|(kotlin/Int) -> kotlin/String|
|
||||
idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/types/functionalTypeArgument.kt
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
fun x(): (<expr>Int</expr> ) -> String= TODO()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtParameter
|
||||
FIR element: FirValueParameterImpl
|
||||
|
||||
FIR element rendered:
|
||||
R|kotlin/Int|
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
|
||||
fun x(): <expr>Int?</expr> = TODO()
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtTypeReference
|
||||
FIR element: FirResolvedTypeRefImpl
|
||||
|
||||
FIR element rendered:
|
||||
R|kotlin/Int?|
|
||||
+18
@@ -445,6 +445,18 @@ public class GetOrBuildFirTestGenerated extends AbstractGetOrBuildFirTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/types"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionalType.kt")
|
||||
public void testFunctionalType() throws Exception {
|
||||
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/types/functionalType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionalTypeArgument.kt")
|
||||
public void testFunctionalTypeArgument() throws Exception {
|
||||
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/types/functionalTypeArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("invalidTypeArgumentsCount.kt")
|
||||
public void testInvalidTypeArgumentsCount() throws Exception {
|
||||
@@ -475,6 +487,12 @@ public class GetOrBuildFirTestGenerated extends AbstractGetOrBuildFirTest {
|
||||
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/types/nestedTypeArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() throws Exception {
|
||||
runTest("idea/idea-frontend-fir/idea-fir-low-level-api/testdata/getOrBuildFir/types/nullableType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableTypeWithooutQuestionMark.kt")
|
||||
public void testNullableTypeWithooutQuestionMark() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user