Shorten references inserts imports for global functions and properties too
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
package source
|
||||
|
||||
import target.A
|
||||
import target.test
|
||||
|
||||
fun test1() = target.test(A())
|
||||
fun test1() = test(A())
|
||||
+5
-3
@@ -1,10 +1,12 @@
|
||||
package c
|
||||
|
||||
import b.Test
|
||||
import b.test
|
||||
import b.TEST
|
||||
|
||||
fun bar() {
|
||||
val t: Test = Test()
|
||||
b.test()
|
||||
println(b.TEST)
|
||||
b.TEST = ""
|
||||
test()
|
||||
println(TEST)
|
||||
TEST = ""
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,7 +1,9 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
class Test {
|
||||
fun foo() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
package c
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,7 +1,8 @@
|
||||
package c
|
||||
|
||||
import a.*
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,7 +1,9 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
class Test {
|
||||
fun foo() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
package c
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,7 +1,8 @@
|
||||
package c
|
||||
|
||||
import a.*
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,7 +1,9 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
class Test {
|
||||
fun foo() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
package c
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+3
-2
@@ -1,8 +1,9 @@
|
||||
package c
|
||||
|
||||
import a.*
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,7 +1,9 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
class Test {
|
||||
fun foo() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
package c
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+3
-2
@@ -1,8 +1,9 @@
|
||||
package c
|
||||
|
||||
import a.*
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user