FIR IDE: move low level api testdata sources to the analysis directory
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fun foo(f: Float.(Int, String) -> Boolean) {
|
||||
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
val a = run {
|
||||
class X()
|
||||
|
||||
val y = 10
|
||||
}
|
||||
}
|
||||
|
||||
inline fun <R> run(block: () -> R): R {
|
||||
return block()
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
enum class A {
|
||||
X,
|
||||
Y,
|
||||
Z
|
||||
|
||||
;
|
||||
|
||||
fun foo(){}
|
||||
|
||||
val x = 10
|
||||
|
||||
fun bar() = 10
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
enum class A {
|
||||
X {
|
||||
fun localInX() = 1
|
||||
},
|
||||
Y {
|
||||
override fun foo() {}
|
||||
},
|
||||
Z,
|
||||
|
||||
;
|
||||
|
||||
open fun foo() {}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class A(val x: Int = 10, val b: String) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class A {
|
||||
init {
|
||||
val x = 10
|
||||
class B
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val x = run {
|
||||
val inLambda = 10
|
||||
println(inLambda)
|
||||
inLambda
|
||||
}
|
||||
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
class Outer {
|
||||
val i: Int = 1
|
||||
get() {
|
||||
class Inner {
|
||||
var i: Int = 2
|
||||
get() {
|
||||
field++
|
||||
return field
|
||||
}
|
||||
val j: Int = 3
|
||||
get() {
|
||||
field = 42
|
||||
return field
|
||||
}
|
||||
|
||||
fun innerMember() {
|
||||
field++
|
||||
}
|
||||
}
|
||||
return field
|
||||
}
|
||||
|
||||
val j: Int = 4
|
||||
get() {
|
||||
fun local() {
|
||||
field++
|
||||
field++
|
||||
}
|
||||
local()
|
||||
return field
|
||||
}
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
fun local() = 0
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun foo() {
|
||||
fun local() {
|
||||
println("local")
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
fun foo1() = 10
|
||||
|
||||
fun foo2() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
fun foo1() = 10
|
||||
|
||||
fun foo2() {
|
||||
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
typealias X = Int
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
class A {
|
||||
|
||||
}
|
||||
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
class C {
|
||||
|
||||
}
|
||||
|
||||
class D {
|
||||
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun foo1() = 1
|
||||
|
||||
fun foo2() = 2
|
||||
|
||||
fun foo3() = 3
|
||||
|
||||
fun foo4() = 4
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
fun foo1() {
|
||||
println("foo1")
|
||||
}
|
||||
|
||||
fun foo2() {
|
||||
println("foo2")
|
||||
}
|
||||
|
||||
fun foo3() {
|
||||
println("foo3")
|
||||
}
|
||||
|
||||
fun foo4() {
|
||||
println("foo4")
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
class B {
|
||||
|
||||
}
|
||||
|
||||
object C {
|
||||
class D {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
fun y() {}
|
||||
|
||||
class B {
|
||||
fun x() {}
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
var x: Int = 10
|
||||
get() = field
|
||||
set(value) {
|
||||
println(1)
|
||||
field = value
|
||||
}
|
||||
|
||||
class X {
|
||||
var y: Int = 10
|
||||
get() = field
|
||||
set(value) {
|
||||
println(2)
|
||||
field = value
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
var withGetterAndSetter: Int = 42
|
||||
get() = field
|
||||
set(value) {
|
||||
field = value
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class A(val x: Int = 10, val b: String) {
|
||||
constructor(i: Int) : this(x = 1, b = i.toString())
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
typealias A = 10
|
||||
Reference in New Issue
Block a user