FIR IDE: move analysis api fir testdata to the analysis directory
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
fun main(it: Iterator<Any>) {
|
||||
for (i <caret>in it.iterator()) {}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.collections) inline operator fun <T> kotlin.collections.Iterator<T>.iterator(): kotlin.collections.Iterator<T>
|
||||
1: (in kotlin.collections.Iterator) operator fun hasNext(): kotlin.Boolean
|
||||
2: (in kotlin.collections.Iterator) operator fun next(): kotlin.Any
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main() {
|
||||
for (i <caret>in 1..2) {}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.collections.IntIterator) operator fun next(): kotlin.Int
|
||||
1: (in kotlin.collections.Iterator) operator fun hasNext(): kotlin.Boolean
|
||||
2: (in kotlin.ranges.IntProgression) open operator fun iterator(): kotlin.collections.IntIterator
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun main() {
|
||||
for (i <caret>in "") {}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.collections.CharIterator) operator fun next(): kotlin.Char
|
||||
1: (in kotlin.collections.Iterator) operator fun hasNext(): kotlin.Boolean
|
||||
2: (in kotlin.text) operator fun kotlin.CharSequence.iterator(): kotlin.collections.CharIterator
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fun test(f: Foo) {
|
||||
for(i <caret>in f) {}
|
||||
}
|
||||
|
||||
interface Foo
|
||||
fun Foo.iterator(): Iterator
|
||||
|
||||
interface Iterator
|
||||
|
||||
fun Iterator.next(): Any
|
||||
fun Iterator.hasNext(): Boolean
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun Foo.iterator(): Iterator
|
||||
1: (in ROOT) fun Iterator.hasNext(): kotlin.Boolean
|
||||
2: (in ROOT) fun Iterator.next(): kotlin.Any
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
fun test(f: Foo) {
|
||||
for(i <caret>in f) {}
|
||||
}
|
||||
|
||||
interface Foo {
|
||||
fun iterator(): Iterator
|
||||
}
|
||||
|
||||
interface Iterator {
|
||||
fun next(): Any
|
||||
fun hasNext(): Boolean
|
||||
}
|
||||
|
||||
// MULTIRESOLVE
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Resolved to:
|
||||
0: (in Foo) fun iterator(): Iterator
|
||||
1: (in Iterator) fun hasNext(): kotlin.Boolean
|
||||
2: (in Iterator) fun next(): kotlin.Any
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
fun test(f: Foo) {
|
||||
for(i <caret>in f) {}
|
||||
}
|
||||
|
||||
interface Foo {
|
||||
fun iterator(): Iterator
|
||||
}
|
||||
|
||||
interface Iterator {
|
||||
fun hasNext(): Boolean
|
||||
}
|
||||
|
||||
// MULTIRESOLVE
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
Resolved to:
|
||||
0: (in Foo) fun iterator(): Iterator
|
||||
1: (in Iterator) fun hasNext(): kotlin.Boolean
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// UNRESOLVED_REFERENCE
|
||||
fun test() {
|
||||
for (x <caret>in Y()) {}
|
||||
}
|
||||
|
||||
class Y
|
||||
Reference in New Issue
Block a user