FIR IDE: move analysis api fir testdata to the analysis directory

This commit is contained in:
Ilya Kirillov
2021-09-14 17:22:32 +02:00
parent 4d52b354af
commit 42f0536904
705 changed files with 0 additions and 0 deletions
@@ -0,0 +1,12 @@
package foo.bar.baz
class AA {
class BB {
companion object
}
}
fun test() {
val b = f<caret>oo.bar.baz.AA.BB
}
@@ -0,0 +1,2 @@
Resolved to:
0: package foo
@@ -0,0 +1,13 @@
// IGNORE_FIR
package foo.bar.baz
class AA {
class BB {
companion object
}
}
fun test() {
val b = foo.bar.baz.AA.B<caret>B
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in foo.bar.baz.AA) class BB
@@ -0,0 +1,12 @@
package foo.bar.baz
class AA {
class BB {
companion object
}
}
fun test() {
val b = foo.bar.baz.A<caret>A.BB
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in foo.bar.baz) class AA
@@ -0,0 +1,11 @@
package foo.bar.baz
class AA {
class BB {
companion object
}
}
fun test() {
val b = foo.bar.b<caret>az.AA.BB
}
@@ -0,0 +1,2 @@
Resolved to:
0: package foo.bar.baz
@@ -0,0 +1,9 @@
package foo.bar.baz
class AA {
fun foo() {}
}
fun test() {
A<caret>A::foo
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in foo.bar.baz) class AA
@@ -0,0 +1,13 @@
// IGNORE_FE10
package foo.bar.baz
class AA {
companion object {
fun foo() {}
}
}
fun test() {
A<caret>A::foo // FE1.0 won't resolve this
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in foo.bar.baz.AA) companion object
@@ -0,0 +1,13 @@
// IGNORE_FE10
package foo.bar.baz
class AA {
companion object
}
fun AA.Companion.foo() {}
fun test() {
A<caret>A::foo // FE1.0 won't resolve this
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in foo.bar.baz.AA) companion object
@@ -0,0 +1,5 @@
class A(val aa: A?)
fun f(a: A) {
val x = a?.a<caret>a
}
@@ -0,0 +1,2 @@
Resolved to:
0: (in A) val aa: A?