New J2K: do not find import usages in AST building phase

It is a rather heavy operation and it increases conversion time
Related to #KT-31848
This commit is contained in:
Ilya Kirillov
2019-06-08 20:53:02 +03:00
parent d0e3ab1beb
commit 5f8b5efd66
26 changed files with 62 additions and 40 deletions
@@ -77,7 +77,7 @@ internal class Java8Class {
}
fun testGenericFunctions() {
val emptyList: Function0<kotlin.collections.List<String>> = { emptyList() }
val emptyList: Function0<List<String>> = { emptyList() }
val list = emptyList.invoke()
list[0]
}
+3 -3
View File
@@ -122,10 +122,10 @@ internal class Java8Class {
}
fun testGenericFunctions() {
val emptyList: JFunction1<kotlin.collections.List<String>> = JFunction1 { emptyList() }
val emptyList: JFunction1<List<String>> = JFunction1 { emptyList() }
emptyList.foo()
MethodReferenceHelperClass.staticFun1(JFunction1<kotlin.collections.List<String>> { emptyList() })
h.memberFun1(JFunction1<kotlin.collections.List<String>> { emptyList() })
MethodReferenceHelperClass.staticFun1(JFunction1<List<String>> { emptyList() })
h.memberFun1(JFunction1<List<String>> { emptyList() })
}
fun memberFun(): Int {