LL: showcase converted constants in raw FIR
This commit is contained in:
committed by
Ilya Kirillov
parent
61cca31b6b
commit
7e8c893ce1
Vendored
+1
@@ -0,0 +1 @@
|
||||
val x = <expr>-1</expr>
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
KT element: KtPrefixExpression
|
||||
FIR element: FirConstExpressionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
Int(-1)
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
val x = -<expr>1</expr>
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
KT element: KtConstantExpression
|
||||
FIR element: FirConstExpressionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
Int(-1)
|
||||
+1
@@ -0,0 +1 @@
|
||||
val x = <expr>+1</expr>
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
KT element: KtPrefixExpression
|
||||
FIR element: FirConstExpressionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
Int(1)
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
val x = +<expr>1</expr>
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
KT element: KtConstantExpression
|
||||
FIR element: FirConstExpressionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
Int(1)
|
||||
+24
@@ -291,6 +291,30 @@ public class GetOrBuildFirTestGenerated extends AbstractGetOrBuildFirTest {
|
||||
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/expressions/intLiteral.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intLiteral_minusOne_entire.kt")
|
||||
public void testIntLiteral_minusOne_entire() throws Exception {
|
||||
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/expressions/intLiteral_minusOne_entire.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intLiteral_minusOne_justOne.kt")
|
||||
public void testIntLiteral_minusOne_justOne() throws Exception {
|
||||
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/expressions/intLiteral_minusOne_justOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intLiteral_plusOne_entire.kt")
|
||||
public void testIntLiteral_plusOne_entire() throws Exception {
|
||||
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/expressions/intLiteral_plusOne_entire.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intLiteral_plusOne_justOne.kt")
|
||||
public void testIntLiteral_plusOne_justOne() throws Exception {
|
||||
runTest("analysis/low-level-api-fir/testdata/getOrBuildFir/expressions/intLiteral_plusOne_justOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isExpression.kt")
|
||||
public void testIsExpression() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user