FIR IDE: move low level api testdata sources to the analysis directory

This commit is contained in:
Ilya Kirillov
2021-09-14 16:39:48 +02:00
parent 633b0fa612
commit 989f3248e4
371 changed files with 0 additions and 0 deletions
@@ -0,0 +1,9 @@
class X<T> {
class Y<K>
open class BASE
/*PLACE*/class PLACE
}
/*ONAIR*/inner class ONAIR : BASE() {
fun x() = Y<T>()
}
@@ -0,0 +1,10 @@
public final inner [BODY_RESOLVE] class ONAIR<T> : R|X.BASE| {
public [BODY_RESOLVE] constructor(): R|X.ONAIR<T>| {
super<R|X.BASE|>()
}
public final [BODY_RESOLVE] fun x(): R|X.Y<T>| {
^x R|SubstitutionOverride</X.Y.Y>|<R|T|>()
}
}
@@ -0,0 +1,5 @@
/*PLACE*/@file:helloKitty()
fun f() {
/*ONAIR*/@file:Deprecated("hello")
}
@@ -0,0 +1 @@
@FILE:R|kotlin/Deprecated|(message = String(hello))
@@ -0,0 +1,10 @@
fun xxx() {
val f = 2
val g = "x"
/*PLACE*/val x = g
}
fun x() {
/*ONAIR*/val y = f
}
@@ -0,0 +1 @@
[BODY_RESOLVE] lval y: R|kotlin/Int| = R|<local>/f|
@@ -0,0 +1,6 @@
class X {
class Y
fun x(/*PLACE*/x: Int) {}
}
fun y(/*ONAIR*/y: Y) {}
@@ -0,0 +1 @@
[BODY_RESOLVE] y: R|X.Y|
@@ -0,0 +1,8 @@
class A {
class B
}
val a: /*PLACE*/A.B.C
val b: /*ONAIR*/A.B
@@ -0,0 +1,2 @@
public final [BODY_RESOLVE] val b: R|A.B|
[BODY_RESOLVE] public get(): R|A.B|
@@ -0,0 +1,9 @@
fun xxx() {
val x = 2
/*PLACE*/class C
}
/*ONAIR*/class E {
fun e() = x
}
@@ -0,0 +1,10 @@
public final [BODY_RESOLVE] class E : R|kotlin/Any| {
public [BODY_RESOLVE] constructor(): R|E| {
super<R|kotlin/Any|>()
}
public final [BODY_RESOLVE] fun e(): R|kotlin/Int| {
^e R|<local>/x|
}
}
@@ -0,0 +1,6 @@
fun xxx() {
val x = 3
/*PLACE*/fun lcl() = ""
}
/*ONAIR*/fun x() = x
@@ -0,0 +1,3 @@
local final [BODY_RESOLVE] fun x(): R|kotlin/Int| {
^x R|<local>/x|
}
@@ -0,0 +1,13 @@
class X
fun f(): X {
var x = 3
val y = 4
/*PLACE*/while(true) {}
}
fun g(): X {
/*ONAIR*/while (x < 2) {
x--
val z = y
}
}
@@ -0,0 +1,6 @@
while(CMP(<, R|<local>/x|.R|kotlin/Int.compareTo|(Int(2)))) {
[BODY_RESOLVE] lval <unary>: R|kotlin/Int| = R|<local>/x|
R|<local>/x| = R|<local>/<unary>|.R|kotlin/Int.dec|()
R|<local>/<unary>|
[BODY_RESOLVE] lval z: R|kotlin/Int| = R|<local>/y|
}
@@ -0,0 +1,5 @@
class Cls<T, K> {
/*PLACE*/fun member<T>(x: Int) = 2
}
/*ONAIR*/fun niewbe<K>(a: Char, b: Double) = "Trololo"
@@ -0,0 +1,3 @@
public final [BODY_RESOLVE] fun <K> niewbe([BODY_RESOLVE] a: R|kotlin/Char|, [BODY_RESOLVE] b: R|kotlin/Double|): R|kotlin/String| {
^niewbe String(Trololo)
}
@@ -0,0 +1,5 @@
class Cls {
/*PLACE*/val memberProperty = 2
}
/*ONAIR*/val niewbe = "Hello"
@@ -0,0 +1,2 @@
public final [BODY_RESOLVE] val niewbe: R|kotlin/String| = String(Hello)
[BODY_RESOLVE] public get(): R|kotlin/String|
@@ -0,0 +1,9 @@
interface Base {
fun baseMember(): Int
}
class Derived : Base {
/*PLACE*/fun someMember() = "Hello"
}
/*ONAIR*/override fun baseMember() = 3
@@ -0,0 +1,3 @@
public final override [BODY_RESOLVE] fun baseMember(): R|kotlin/Int| {
^baseMember Int(3)
}
@@ -0,0 +1,9 @@
open class X {
/*PLACE*/class PLACE
}
/*ONAIR*/class Y {
open class BASE : X()
class DERIVED : BASE()
fun withType(arg: BASE) { }
}
@@ -0,0 +1,23 @@
public final [BODY_RESOLVE] class Y : R|kotlin/Any| {
public [BODY_RESOLVE] constructor(): R|X.Y| {
super<R|kotlin/Any|>()
}
public open [BODY_RESOLVE] class BASE : R|X| {
public [BODY_RESOLVE] constructor(): R|X.Y.BASE| {
super<R|X|>()
}
}
public final [BODY_RESOLVE] class DERIVED : R|X.Y.BASE| {
public [BODY_RESOLVE] constructor(): R|X.Y.DERIVED| {
super<R|X.Y.BASE|>()
}
}
public final [BODY_RESOLVE] fun withType([BODY_RESOLVE] arg: R|X.Y.BASE|): R|kotlin/Unit| {
}
}
@@ -0,0 +1,9 @@
class C<T> {
fun x(/*PLACE*/a: Int) {
}
}
fun y(/*ONAIR*/b: T) {
}
@@ -0,0 +1 @@
[BODY_RESOLVE] b: R|T|
@@ -0,0 +1,12 @@
val x: Int get() {
val qqq = "Hello"
/*PLACE*/val x = 42
2
}
val y: String get() {
/*ONAIR*/val z = qqq
""
}
@@ -0,0 +1 @@
[BODY_RESOLVE] lval z: R|kotlin/String| = R|<local>/qqq|
@@ -0,0 +1,9 @@
var x = 2
set(value) {
/*PLACE*/val inside = ""
}
var y = 2
set(value) {
/*ONAIR*/val inSetter = value
}
@@ -0,0 +1 @@
[BODY_RESOLVE] lval inSetter: R|kotlin/Int| = R|<local>/value|
@@ -0,0 +1,8 @@
/*PLACE*/fun place(): Int {
fun xxx() = 2
}
/*ONAIR*/fun onAir(): Int {
fun yyy() = "hello"
}
@@ -0,0 +1,6 @@
public final [BODY_RESOLVE] fun onAir(): R|kotlin/Int| {
local final [BODY_RESOLVE] fun yyy(): R|kotlin/String| {
^yyy String(hello)
}
}
@@ -0,0 +1,8 @@
class X<T, K> {
/*PLACE*/private typealias A = List<T>
}
class Y {
/*ONAIR*/public typealias B = Set<K>
}
@@ -0,0 +1 @@
public final [BODY_RESOLVE] typealias B = R|kotlin/collections/Set<K>|