FIR IDE: move low level api testdata sources to the analysis directory
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
fun y(a: Int){}
|
||||
|
||||
fun x() {
|
||||
y(<expr>1</expr>)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
KT element: KtValueArgument
|
||||
FIR element: FirConstExpressionImpl
|
||||
|
||||
FIR element rendered:
|
||||
Int(1)
|
||||
@@ -0,0 +1,5 @@
|
||||
fun y<T>(){}
|
||||
|
||||
fun x() {
|
||||
y< <expr>Int</expr> >()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtTypeProjection
|
||||
FIR element: FirTypeProjectionWithVarianceImpl
|
||||
|
||||
FIR element rendered:
|
||||
R|kotlin/Int|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtSuperTypeCallEntry
|
||||
|
||||
open class B(x: Int)
|
||||
class A : <expr>B(1)</expr>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtSuperTypeCallEntry
|
||||
FIR element: FirDelegatedConstructorCallImpl
|
||||
|
||||
FIR element rendered:
|
||||
super<R|B|>(Int(1))
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class A(x: Int) {
|
||||
constructor(y: String) : <expr>this(1)</expr>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtConstructorDelegationCall
|
||||
FIR element: FirDelegatedConstructorCallImpl
|
||||
|
||||
FIR element rendered:
|
||||
this<R|A|>(Int(1))
|
||||
+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: FirResolvedArgumentListImpl
|
||||
|
||||
FIR element rendered:
|
||||
Int(1)String(2)
|
||||
+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: FirResolvedArgumentListImpl
|
||||
|
||||
FIR element rendered:
|
||||
Int(1)String(2)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
object A {
|
||||
fun y(a: Int){}
|
||||
}
|
||||
|
||||
fun x() {
|
||||
A.<expr>y(1)</expr>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtCallExpression
|
||||
FIR element: FirFunctionCallImpl
|
||||
|
||||
FIR element rendered:
|
||||
Q|A|.R|/A.y|(Int(1))
|
||||
@@ -0,0 +1,7 @@
|
||||
object A {
|
||||
fun y(a: Int){}
|
||||
}
|
||||
|
||||
fun x() {
|
||||
<expr>A.y(1)</expr>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
KT element: KtDotQualifiedExpression
|
||||
FIR element: FirFunctionCallImpl
|
||||
|
||||
FIR element rendered:
|
||||
Q|A|.R|/A.y|(Int(1))
|
||||
Reference in New Issue
Block a user