Insert imports on copy/paste
Introduce KotlinCopyPasteReferenceProcessor
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
package a
|
||||
|
||||
import a.E.ENTRY
|
||||
import a.Outer.*
|
||||
|
||||
trait T
|
||||
|
||||
class A(i: Int) {}
|
||||
|
||||
val c = 0
|
||||
|
||||
fun g(a: A) {}
|
||||
|
||||
fun A.ext() = A()
|
||||
|
||||
object O1 {
|
||||
fun f() {
|
||||
}
|
||||
}
|
||||
|
||||
object O2 {
|
||||
}
|
||||
|
||||
enum class E {
|
||||
ENTRY
|
||||
}
|
||||
|
||||
class Outer {
|
||||
inner class Inner {
|
||||
}
|
||||
class Nested {
|
||||
}
|
||||
enum class NestedEnum {
|
||||
}
|
||||
object NestedObj {
|
||||
}
|
||||
trait NestedTrait {
|
||||
}
|
||||
annotation class NestedAnnotation
|
||||
}
|
||||
|
||||
class ClassObject {
|
||||
class object {
|
||||
}
|
||||
}
|
||||
|
||||
<selection>fun f(a: A, t: T) {
|
||||
g(A(c).ext())
|
||||
O1.f()
|
||||
O2
|
||||
ENTRY
|
||||
}
|
||||
|
||||
fun f2(i: Inner, n: Nested, e: NestedEnum, o: NestedObj, t: NestedTrait, a: NestedAnnotation) {
|
||||
ClassObject
|
||||
}</selection>
|
||||
Reference in New Issue
Block a user