Working on new imports insertion on copy/paste
This commit is contained in:
@@ -1,21 +1,14 @@
|
||||
package to
|
||||
|
||||
import a.*
|
||||
import a.E.ENTRY
|
||||
import a.Outer.Inner
|
||||
import a.Outer.Nested
|
||||
import a.Outer.NestedEnum
|
||||
import a.Outer.NestedObj
|
||||
import a.Outer.NestedTrait
|
||||
import a.Outer.NestedAnnotation
|
||||
|
||||
fun f(a: A, t: T) {
|
||||
fun f(p: A, t: T) {
|
||||
g(A(c).ext())
|
||||
O1.f()
|
||||
O2
|
||||
ENTRY
|
||||
E.ENTRY
|
||||
}
|
||||
|
||||
fun f2(i: Inner, n: Nested, e: NestedEnum, o: NestedObj, t: NestedTrait, a: NestedAnnotation) {
|
||||
fun f2(i: Outer.Inner, n: Outer.Nested, e: Outer.NestedEnum, o: Outer.NestedObj, t: Outer.NestedTrait, a: Outer.NestedAnnotation) {
|
||||
ClassObject
|
||||
}
|
||||
@@ -44,7 +44,7 @@ class ClassObject {
|
||||
}
|
||||
}
|
||||
|
||||
<selection>fun f(a: A, t: T) {
|
||||
<selection>fun f(p: A, t: T) {
|
||||
g(A(c).ext())
|
||||
O1.f()
|
||||
O2
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
package to
|
||||
|
||||
import a.Outer.Inner
|
||||
import a.Outer.Nested
|
||||
import a.Outer.NestedEnum
|
||||
import a.Outer.NestedObj
|
||||
import a.Outer.NestedTrait
|
||||
import a.Outer.NestedAnnotation
|
||||
import a.Outer
|
||||
|
||||
fun f(i: Inner, n: Nested, e: NestedEnum, o: NestedObj, t: NestedTrait, a: NestedAnnotation) {
|
||||
fun f(i: Outer.Inner, n: Outer.Nested, e: Outer.NestedEnum, o: Outer.NestedObj, t: Outer.NestedTrait, a: Outer.NestedAnnotation) {
|
||||
}
|
||||
@@ -3,6 +3,6 @@ package to
|
||||
import a.a
|
||||
|
||||
fun f(i: a) {
|
||||
a.a
|
||||
a
|
||||
a()
|
||||
}
|
||||
@@ -3,5 +3,7 @@ package to
|
||||
class A<T> {
|
||||
}
|
||||
|
||||
val a: A<String>? = null
|
||||
|
||||
fun f(b: a.A<Int>) {
|
||||
}
|
||||
@@ -3,4 +3,6 @@ package to
|
||||
class A<T> {
|
||||
}
|
||||
|
||||
val a: A<String>? = null
|
||||
|
||||
<caret>
|
||||
@@ -3,5 +3,7 @@ package to
|
||||
class A() {
|
||||
}
|
||||
|
||||
val a: A? = null
|
||||
|
||||
fun f(a: a.A) {
|
||||
}
|
||||
@@ -3,4 +3,6 @@ package to
|
||||
class A() {
|
||||
}
|
||||
|
||||
val a: A? = null
|
||||
|
||||
<caret>
|
||||
@@ -1,20 +1,14 @@
|
||||
package to
|
||||
|
||||
import a.Outer.Nested.NN
|
||||
import a.Outer.Nested.NI
|
||||
import a.Outer.Inner.IN
|
||||
import a.Outer.Inner.II
|
||||
import a.Outer.Nested.NN2
|
||||
import a.with
|
||||
import a.Outer
|
||||
import a.Outer.Inner.IN2
|
||||
|
||||
fun f(p1: NN, p2: NI, p3: IN, p4: II) {
|
||||
NN2()
|
||||
fun f(p1: Outer.Nested.NN, p2: Outer.Nested.NI, p3: Outer.Inner.IN, p4: Outer.Inner.II) {
|
||||
Outer.Nested.NN2()
|
||||
with(Outer.Nested()) {
|
||||
NI2()
|
||||
}
|
||||
IN2()
|
||||
Outer.Inner.IN2()
|
||||
with(Outer().Inner()) {
|
||||
II2()
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.get
|
||||
import a.set
|
||||
import a.A
|
||||
|
||||
class B {
|
||||
var a by A()
|
||||
var v by A()
|
||||
}
|
||||
@@ -12,5 +12,5 @@ fun T.set(thisRef: B, desc: PropertyMetadata, value: Int) {
|
||||
class A(): T
|
||||
|
||||
<selection>class B {
|
||||
var a by A()
|
||||
var v by A()
|
||||
}</selection>
|
||||
@@ -11,6 +11,6 @@ public class JavaClass {
|
||||
public class InnerClass {
|
||||
}
|
||||
|
||||
public class NestedClass {
|
||||
public static class NestedClass {
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,10 @@
|
||||
package to
|
||||
|
||||
import java.JavaClass
|
||||
import java.JavaClass.staticMethod
|
||||
import java.JavaClass.NestedClass
|
||||
|
||||
fun f(c: JavaClass) {
|
||||
staticMethod()
|
||||
JavaClass.staticMethod()
|
||||
c.method()
|
||||
c.InnerClass()
|
||||
NestedClass()
|
||||
JavaClass.NestedClass()
|
||||
}
|
||||
@@ -1,28 +1,23 @@
|
||||
package to
|
||||
|
||||
import d.A
|
||||
import d.T
|
||||
import d.g
|
||||
import d.c
|
||||
import d.ext
|
||||
import d.A
|
||||
import d.T
|
||||
import d.Outer
|
||||
import d.O1
|
||||
import d.O2
|
||||
import d.E.ENTRY
|
||||
import d.Outer.Inner
|
||||
import d.Outer.Nested
|
||||
import d.Outer.NestedEnum
|
||||
import d.Outer.NestedObj
|
||||
import d.Outer.NestedTrait
|
||||
import d.Outer.NestedAnnotation
|
||||
import d.E
|
||||
import d.ClassObject
|
||||
|
||||
fun f(a: A, t: T) {
|
||||
g(A(c).ext())
|
||||
O1.f()
|
||||
O2
|
||||
ENTRY
|
||||
E.ENTRY
|
||||
}
|
||||
|
||||
fun f2(i: Inner, n: Nested, e: NestedEnum, o: NestedObj, t: NestedTrait, a: NestedAnnotation) {
|
||||
fun f2(i: Outer.Inner, n: Outer.Nested, e: Outer.NestedEnum, o: Outer.NestedObj, t: Outer.NestedTrait, a: Outer.NestedAnnotation) {
|
||||
ClassObject
|
||||
}
|
||||
@@ -1,11 +1,9 @@
|
||||
package to
|
||||
|
||||
import a.A.A
|
||||
import a.A.B
|
||||
import a.A.C
|
||||
import a.A
|
||||
|
||||
fun f() {
|
||||
A
|
||||
B
|
||||
C
|
||||
A.A
|
||||
A.B
|
||||
A.C
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.plus
|
||||
import a.infix
|
||||
import a.A
|
||||
|
||||
fun f(a: A) {
|
||||
a + a
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.ext
|
||||
import a.p
|
||||
|
||||
fun A.ext() {
|
||||
}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.ext
|
||||
import a.plus
|
||||
import a.infix
|
||||
import a.minus
|
||||
import a.p
|
||||
|
||||
fun A.ext() {
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.iterator
|
||||
import a.next
|
||||
import a.hasNext
|
||||
import a.A
|
||||
|
||||
fun f() {
|
||||
for (i in A()) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.get
|
||||
import a.A
|
||||
|
||||
fun f() {
|
||||
A()[""]
|
||||
|
||||
@@ -1,28 +1,23 @@
|
||||
package to
|
||||
|
||||
import d.A
|
||||
import d.T
|
||||
import d.g
|
||||
import d.c
|
||||
import d.ext
|
||||
import d.A
|
||||
import d.T
|
||||
import d.Outer
|
||||
import d.O1
|
||||
import d.O2
|
||||
import d.E.ENTRY
|
||||
import d.Outer.Inner
|
||||
import d.Outer.Nested
|
||||
import d.Outer.NestedEnum
|
||||
import d.Outer.NestedObj
|
||||
import d.Outer.NestedTrait
|
||||
import d.Outer.NestedAnnotation
|
||||
import d.E
|
||||
import d.ClassObject
|
||||
|
||||
fun f(a: A, t: T) {
|
||||
g(A(c).ext())
|
||||
O1.f()
|
||||
O2
|
||||
ENTRY
|
||||
E.ENTRY
|
||||
}
|
||||
|
||||
fun f2(i: Inner, n: Nested, e: NestedEnum, o: NestedObj, t: NestedTrait, a: NestedAnnotation) {
|
||||
fun f2(i: Outer.Inner, n: Outer.Nested, e: Outer.NestedEnum, o: Outer.NestedObj, t: Outer.NestedTrait, a: Outer.NestedAnnotation) {
|
||||
ClassObject
|
||||
}
|
||||
@@ -1,13 +1,7 @@
|
||||
package to
|
||||
|
||||
import a.Outer.Inner
|
||||
import a.Outer.Nested
|
||||
import a.Outer.NestedEnum
|
||||
import a.Outer.NestedObj
|
||||
import a.Outer.NestedTrait
|
||||
import a.Outer.NestedAnnotation
|
||||
import a.Outer
|
||||
|
||||
fun f(i: Inner, n: Nested, e: NestedEnum, o: NestedObj, t: NestedTrait, a: NestedAnnotation) {
|
||||
fun f(i: Outer.Inner, n: Outer.Nested, e: Outer.NestedEnum, o: Outer.NestedObj, t: Outer.NestedTrait, aa: Outer.NestedAnnotation) {
|
||||
Outer().Inner2()
|
||||
}
|
||||
@@ -18,6 +18,6 @@ class Outer {
|
||||
annotation class NestedAnnotation
|
||||
}
|
||||
|
||||
<selection>fun f(i: Inner, n: Nested, e: NestedEnum, o: NestedObj, t: NestedTrait, a: NestedAnnotation) {
|
||||
<selection>fun f(i: Inner, n: Nested, e: NestedEnum, o: NestedObj, t: NestedTrait, aa: NestedAnnotation) {
|
||||
Outer().Inner2()
|
||||
}</selection>
|
||||
@@ -1,7 +1,7 @@
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.invoke
|
||||
import a.A
|
||||
|
||||
fun f(a: A) {
|
||||
a()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.component1
|
||||
import a.component2
|
||||
import a.A
|
||||
|
||||
fun f() {
|
||||
val (a, b) = A()
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package to
|
||||
|
||||
import a.A
|
||||
import a.B
|
||||
import a.next
|
||||
import a.hasNext
|
||||
import a.A
|
||||
import a.B
|
||||
|
||||
fun A.iterator() = B()
|
||||
|
||||
|
||||
@@ -1,20 +1,12 @@
|
||||
package a
|
||||
|
||||
import a.E.ENTRY
|
||||
import a.Outer.Inner
|
||||
import a.Outer.Nested
|
||||
import a.Outer.NestedEnum
|
||||
import a.Outer.NestedObj
|
||||
import a.Outer.NestedTrait
|
||||
import a.Outer.NestedAnnotation
|
||||
|
||||
fun f(a: A, t: T) {
|
||||
fun f(p: A, t: T) {
|
||||
g(A(c).ext())
|
||||
O1.f()
|
||||
O2
|
||||
ENTRY
|
||||
E.ENTRY
|
||||
}
|
||||
|
||||
fun f2(i: Inner, n: Nested, e: NestedEnum, o: NestedObj, t: NestedTrait, a: NestedAnnotation) {
|
||||
fun f2(i: Outer.Inner, n: Outer.Nested, e: Outer.NestedEnum, o: Outer.NestedObj, t: Outer.NestedTrait, a: Outer.NestedAnnotation) {
|
||||
ClassObject
|
||||
}
|
||||
@@ -44,7 +44,7 @@ class ClassObject {
|
||||
}
|
||||
}
|
||||
|
||||
<selection>fun f(a: A, t: T) {
|
||||
<selection>fun f(p: A, t: T) {
|
||||
g(A(c).ext())
|
||||
O1.f()
|
||||
O2
|
||||
|
||||
@@ -5,5 +5,7 @@ class A {
|
||||
}
|
||||
}
|
||||
|
||||
val v: A? = null
|
||||
|
||||
fun f(p: a.A.B) {
|
||||
}
|
||||
@@ -5,4 +5,6 @@ class A {
|
||||
}
|
||||
}
|
||||
|
||||
val v: A? = null
|
||||
|
||||
<caret>
|
||||
@@ -1,6 +1,6 @@
|
||||
package to
|
||||
|
||||
import a.T
|
||||
import a.A
|
||||
import a.T
|
||||
|
||||
fun f(): T<A>
|
||||
Reference in New Issue
Block a user