FIR IDE: Add extensions function completion from indices

The insertion handling test is not correct, we need to check file
imports before adding new ones
This commit is contained in:
Roman Golyshev
2021-03-02 22:43:09 +03:00
parent 8396e17c52
commit 3427e0aebb
18 changed files with 125 additions and 13 deletions
@@ -1,4 +1,3 @@
// FIR_COMPARISON
fun String.foo() {
val v = ::xxx_<caret>
}
@@ -1,3 +1,4 @@
// FIR_COMPARISON
package first
interface TestedTrait() {
@@ -1,3 +1,4 @@
// FIR_COMPARISON
package second
import first.FirstClass
@@ -1,3 +1,4 @@
// FIR_COMPARISON
package first
class FirstClass() {
@@ -1,3 +1,4 @@
// FIR_COMPARISON
package first
// For KT-3102
@@ -1,3 +1,4 @@
// FIR_COMPARISON
package first
fun firstFun(p: () -> Unit) {
@@ -1,3 +1,4 @@
// FIR_COMPARISON
package first
fun firstFun(p: String.() -> Unit) {
@@ -1,3 +1,4 @@
// FIR_COMPARISON
package first
fun firstFun(x: third.Dependency) {