Insert imports on copy/paste

Introduce KotlinCopyPasteReferenceProcessor
This commit is contained in:
Pavel V. Talanov
2014-01-22 20:29:46 +04:00
parent 2f55959578
commit 61153c87e0
138 changed files with 2813 additions and 0 deletions
@@ -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>