Down-shift to plain search if reference in unknown language encountered

This commit is contained in:
Valentin Kipyatkov
2016-09-05 17:40:28 +03:00
parent e314e22215
commit 5b638f51b0
26 changed files with 143 additions and 127 deletions
@@ -1,7 +1,4 @@
Resolved java class to descriptor: JavaSAM
Searched references to JavaClass.takeSAM(JavaSAM sam) in Kotlin files
Searched references to JavaSAM in java files
Searched references to JavaSAM in non-Kotlin files
Searched references to pack.A
Used plain search of parameter a of A(val a: Int, val b: String) in LocalSearchScope:
CLASS:A
{ val (x, y) = it }
Used plain search of parameter a of A(val a: Int, val b: String) in whole search scope
@@ -15,10 +15,10 @@ Resolved (a2, b2)
Resolved (a3, b3)
Resolved (a4, b4)
Searched references to A
Searched references to X.f2() in Kotlin files
Searched references to constructor in Kotlin files
Searched references to f1() in Kotlin files
Searched references to fun2 in Kotlin files
Searched references to fun3 in Kotlin files
Searched references to X.f2() in non-Java files
Searched references to constructor in non-Java files
Searched references to f1() in non-Java files
Searched references to fun2 in non-Java files
Searched references to fun3 in non-Java files
Used plain search of parameter a of A(val a: Int, val b: Int) in LocalSearchScope:
CLASS:A
@@ -3,7 +3,7 @@ Checked type of x
Checked type of y
Resolved (x, y)
Searched references to X
Searched references to f() in Kotlin files
Searched references to f() in non-Java files
Used plain search of component1() in LocalSearchScope:
CLASS:X
FUN:component1
@@ -4,7 +4,7 @@ Checked type of x1
Checked type of y1
Resolved (x1, y1)
Searched references to X
Searched references to f() in Kotlin files
Searched references to f() in non-Java files
Used plain search of component1() in LocalSearchScope:
CLASS:X
FUN:component1
@@ -36,21 +36,21 @@ Resolved (x3, y3)
Resolved (x3, y3, z3)
Resolved (x4, y4, z4)
Resolved (x5, y5, z5)
Searched references to JavaClass.getA() in Kotlin files
Searched references to JavaClass.getA() in non-Java files
Searched references to JavaClass2
Searched references to JavaClass3
Searched references to JavaClass4.NestedPrivate
Searched references to JavaClass4.NestedPublic
Searched references to JavaClass4.getNested() in Kotlin files
Searched references to a in Kotlin files
Searched references to f() in Kotlin files
Searched references to g() in Kotlin files
Searched references to h() in Kotlin files
Searched references to listOfA() in Kotlin files
Searched references to JavaClass4.getNested() in non-Java files
Searched references to a in non-Java files
Searched references to f() in non-Java files
Searched references to g() in non-Java files
Searched references to h() in non-Java files
Searched references to listOfA() in non-Java files
Searched references to pack.A
Searched references to pack.X
Searched references to parameter p1 of test2(p1: JavaClass2, p2: JavaClass3) in Kotlin files
Searched references to parameter p2 of test2(p1: JavaClass2, p2: JavaClass3) in Kotlin files
Searched references to parameter p1 of test2(p1: JavaClass2, p2: JavaClass3) in non-Java files
Searched references to parameter p2 of test2(p1: JavaClass2, p2: JavaClass3) in non-Java files
Used plain search of parameter n of A(val n: Int, val s: String, val o: Any) in LocalSearchScope:
CLASS:A
CLASS:X
@@ -4,6 +4,6 @@ Checked type of y
Checked type of z
Resolved (x, y, z)
Searched references to A
Searched references to a in Kotlin files
Searched references to a in non-Java files
Used plain search of parameter n of A(val n: Int, val s: String, val o: Any) in LocalSearchScope:
CLASS:A
@@ -15,12 +15,12 @@ Resolved (x1, y1, z1)
Searched references to A
Searched references to B
Searched references to C
Searched references to C.component1() in Kotlin files
Searched references to a in Kotlin files
Searched references to a1 in Kotlin files
Searched references to parameter a of B(val a: A, val n: Int) in Kotlin files
Searched references to parameter b of f(b: B, c: C) in Kotlin files
Searched references to parameter c of f(b: B, c: C) in Kotlin files
Searched references to C.component1() in non-Java files
Searched references to a in non-Java files
Searched references to a1 in non-Java files
Searched references to parameter a of B(val a: A, val n: Int) in non-Java files
Searched references to parameter b of f(b: B, c: C) in non-Java files
Searched references to parameter c of f(b: B, c: C) in non-Java files
Used plain search of C.component1() in LocalSearchScope:
CLASS:C
Used plain search of parameter a of B(val a: A, val n: Int) in LocalSearchScope:
@@ -12,9 +12,9 @@ Searched references to X
Searched references to Y
Searched references to Z1
Searched references to Z2
Searched references to f() in Kotlin files
Searched references to parameter z1 of g(z1: Z1, z2: Z2) in Kotlin files
Searched references to parameter z2 of g(z1: Z1, z2: Z2) in Kotlin files
Searched references to f() in non-Java files
Searched references to parameter z1 of g(z1: Z1, z2: Z2) in non-Java files
Searched references to parameter z2 of g(z1: Z1, z2: Z2) in non-Java files
Used plain search of component2() in LocalSearchScope:
CLASS:X
CLASS:Y
@@ -7,6 +7,6 @@ Checked type of z
Resolved (x, y)
Resolved (x, y, z)
Searched references to A
Searched references to parameter a of FOR in Kotlin files
Searched references to parameter a of FOR in non-Java files
Used plain search of parameter n of A(val n: Int, val s: String, val o: Any) in LocalSearchScope:
CLASS:A
@@ -6,7 +6,7 @@ Checked type of y1
Resolved (x, y)
Resolved (x1, y1)
Searched references to A
Searched references to list in Kotlin files
Searched references to list in non-Java files
Used plain search of parameter x of A(val x: Int, val y: Int) in LocalSearchScope:
CLASS:A
FUN:x
@@ -1,16 +1,16 @@
Searched references to A
Searched references to parameter p of foo(p: A) in Kotlin files
Searched references to parameter p of takeExtFun(p: A.() -> Unit) in Kotlin files
Searched references to parameter p of takeFun1(p: (A) -> Unit) in Kotlin files
Searched references to parameter p of takeFun2(p: ((A?, Int) -> Unit)?) in Kotlin files
Searched references to parameter p of takeFun3(p: (List<A>) -> Unit) in Kotlin files
Searched references to parameter p of takeFuns(p: MutableList<(A) -> Unit>) in Kotlin files
Searched references to takeExtFun(p: A.() -> Unit) in Kotlin files
Searched references to takeFun1(p: (A) -> Unit) in Kotlin files
Searched references to takeFun2(p: ((A?, Int) -> Unit)?) in Kotlin files
Searched references to takeFun3(p: (List<A>) -> Unit) in Kotlin files
Searched references to takeFuns(p: MutableList<(A) -> Unit>) in Kotlin files
Searched references to v in Kotlin files
Searched references to parameter p of foo(p: A) in non-Java files
Searched references to parameter p of takeExtFun(p: A.() -> Unit) in non-Java files
Searched references to parameter p of takeFun1(p: (A) -> Unit) in non-Java files
Searched references to parameter p of takeFun2(p: ((A?, Int) -> Unit)?) in non-Java files
Searched references to parameter p of takeFun3(p: (List<A>) -> Unit) in non-Java files
Searched references to parameter p of takeFuns(p: MutableList<(A) -> Unit>) in non-Java files
Searched references to takeExtFun(p: A.() -> Unit) in non-Java files
Searched references to takeFun1(p: (A) -> Unit) in non-Java files
Searched references to takeFun2(p: ((A?, Int) -> Unit)?) in non-Java files
Searched references to takeFun3(p: (List<A>) -> Unit) in non-Java files
Searched references to takeFuns(p: MutableList<(A) -> Unit>) in non-Java files
Searched references to v in non-Java files
Used plain search of parameter a of A(val a: Int, val b: Int) in LocalSearchScope:
CLASS:A
{ a, n -> val (x, y) = a!! }
@@ -3,11 +3,11 @@ Checked type of y1
Checked type of y1(a: A)
Resolved (x1, y1)
Searched references to A
Searched references to parameter a of condition(a: A) in Kotlin files
Searched references to parameter a of x(a: A, b: Boolean, list: List<Int>) in Kotlin files
Searched references to parameter a of y1(a: A) in Kotlin files
Searched references to parameter a of y2(a: A) in Kotlin files
Searched references to parameter a of y3(a: A) in Kotlin files
Searched references to parameter a of condition(a: A) in non-Java files
Searched references to parameter a of x(a: A, b: Boolean, list: List<Int>) in non-Java files
Searched references to parameter a of y1(a: A) in non-Java files
Searched references to parameter a of y2(a: A) in non-Java files
Searched references to parameter a of y3(a: A) in non-Java files
Used plain search of parameter n of A(val n: Int, val s: String) in LocalSearchScope:
CLASS:A
{ val (x2, y2) = this }
@@ -13,9 +13,9 @@ Resolved (x2, y2)
Searched references to X
Searched references to Y
Searched references to Z
Searched references to f() in Kotlin files
Searched references to g() in Kotlin files
Searched references to h() in Kotlin files
Searched references to f() in non-Java files
Searched references to g() in non-Java files
Searched references to h() in non-Java files
Used plain search of X.component1() in LocalSearchScope:
CLASS:X
CLASS:Y
@@ -8,10 +8,10 @@ Resolved (x, y)
Resolved b1 + b2
Searched references to A
Searched references to B
Searched references to parameter b1 of f(b1: B, b2: B) in Kotlin files
Searched references to parameter b2 of f(b1: B, b2: B) in Kotlin files
Searched references to parameter other of plus(other: B) in Kotlin files
Searched references to plus(other: B) in Kotlin files
Searched references to parameter b1 of f(b1: B, b2: B) in non-Java files
Searched references to parameter b2 of f(b1: B, b2: B) in non-Java files
Searched references to parameter other of plus(other: B) in non-Java files
Searched references to plus(other: B) in non-Java files
Used plain search of parameter x of A(val x: Int, val y: Int) in LocalSearchScope:
CLASS:A
Used plain search of plus(other: B) in LocalSearchScope:
@@ -8,7 +8,7 @@ Resolved (a1, n1)
Resolved (a2, n2)
Resolved (a2, n2)
Searched references to A
Searched references to parameter a of A(val a: A?, val n: Int) in Kotlin files
Searched references to parameter a of f(a: A) in Kotlin files
Searched references to parameter a of A(val a: A?, val n: Int) in non-Java files
Searched references to parameter a of f(a: A) in non-Java files
Used plain search of parameter a of A(val a: A?, val n: Int) in LocalSearchScope:
CLASS:A
@@ -6,11 +6,11 @@ Resolved (a1, s)
Resolved (b, n)
Searched references to A
Searched references to B
Searched references to a1 in Kotlin files
Searched references to b in Kotlin files
Searched references to parameter a of B(val a: A?, val s: String) in Kotlin files
Searched references to parameter a of f(a: A) in Kotlin files
Searched references to parameter b of A(val b: B, val n: Int) in Kotlin files
Searched references to a1 in non-Java files
Searched references to b in non-Java files
Searched references to parameter a of B(val a: A?, val s: String) in non-Java files
Searched references to parameter a of f(a: A) in non-Java files
Searched references to parameter b of A(val b: B, val n: Int) in non-Java files
Used plain search of parameter a of B(val a: A?, val s: String) in LocalSearchScope:
CLASS:B
Used plain search of parameter b of A(val b: B, val n: Int) in LocalSearchScope:
+1 -1
View File
@@ -1,6 +1,6 @@
Checked type of b
Resolved B(1)[2]
Searched references to B
Searched references to b in Kotlin files
Searched references to b in non-Java files
Used plain search of B.get(i: Int) in LocalSearchScope:
CLASS:B
+2 -2
View File
@@ -2,7 +2,7 @@ Checked type of a
Resolved ++a
Resolved a++
Searched references to A
Searched references to A.inc() in Kotlin files
Searched references to a in Kotlin files
Searched references to A.inc() in non-Java files
Searched references to a in non-Java files
Used plain search of A.inc() in LocalSearchScope:
CLASS:A
+1 -1
View File
@@ -3,6 +3,6 @@ Resolved f(1)
Resolved f(2)
Resolved f(2)(2)
Searched references to B
Searched references to f() in Kotlin files
Searched references to f() in non-Java files
Used plain search of B.invoke(i: Int) in LocalSearchScope:
CLASS:B
+14 -14
View File
@@ -19,20 +19,20 @@ Resolved a1 + 1
Resolved a1 + 1
Searched references to A
Searched references to A
Searched references to A.plus(a: A) in Kotlin files
Searched references to A.plus(a: A) in Kotlin files
Searched references to A.plus(m: Int) in Kotlin files
Searched references to A.plus(m: Int) in Kotlin files
Searched references to a in Kotlin files
Searched references to a in Kotlin files
Searched references to a1 in Kotlin files
Searched references to a1 in Kotlin files
Searched references to a2 in Kotlin files
Searched references to a2 in Kotlin files
Searched references to parameter a of A.plus(a: A) in Kotlin files
Searched references to parameter a of A.plus(a: A) in Kotlin files
Searched references to parameter array of test(array: Array<A>) in Kotlin files
Searched references to parameter array of test(array: Array<A>) in Kotlin files
Searched references to A.plus(a: A) in non-Java files
Searched references to A.plus(a: A) in non-Java files
Searched references to A.plus(m: Int) in non-Java files
Searched references to A.plus(m: Int) in non-Java files
Searched references to a in non-Java files
Searched references to a in non-Java files
Searched references to a1 in non-Java files
Searched references to a1 in non-Java files
Searched references to a2 in non-Java files
Searched references to a2 in non-Java files
Searched references to parameter a of A.plus(a: A) in non-Java files
Searched references to parameter a of A.plus(a: A) in non-Java files
Searched references to parameter array of test(array: Array<A>) in non-Java files
Searched references to parameter array of test(array: Array<A>) in non-Java files
Used plain search of A.plus(a: A) in LocalSearchScope:
CLASS:A
Used plain search of A.plus(m: Int) in LocalSearchScope:
+2 -2
View File
@@ -2,7 +2,7 @@ Checked type of a
Resolved a += 1
Resolved a += A(1)
Searched references to A
Searched references to a in Kotlin files
Searched references to parameter a of A.plusAssign(a: A) in Kotlin files
Searched references to a in non-Java files
Searched references to parameter a of A.plusAssign(a: A) in non-Java files
Used plain search of A.plusAssign(m: Int) in LocalSearchScope:
CLASS:A
+2 -2
View File
@@ -2,7 +2,7 @@ Checked type of a
Resolved a[1]
Resolved a[2]
Searched references to B
Searched references to a in Kotlin files
Searched references to parameter a of B.set(i: Int, a: B) in Kotlin files
Searched references to a in non-Java files
Searched references to parameter a of B.set(i: Int, a: B) in non-Java files
Used plain search of B.set(i: Int, a: B) in LocalSearchScope:
CLASS:B
+1 -1
View File
@@ -1,5 +1,5 @@
Resolved -A(1)
Searched references to A
Searched references to A.unaryMinus() in Kotlin files
Searched references to A.unaryMinus() in non-Java files
Used plain search of A.unaryMinus() in LocalSearchScope:
CLASS:A