One more split test
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtParameter
|
||||||
|
// OPTIONS: usages
|
||||||
import pack.A;
|
import pack.A;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
package pack5
|
|
||||||
|
|
||||||
import pack.A
|
|
||||||
|
|
||||||
var Any.v: (A) -> Unit
|
|
||||||
get() = TODO()
|
|
||||||
set(value) = TODO()
|
|
||||||
|
|
||||||
fun f() {
|
|
||||||
"".v = { val (x, y ) = it }
|
|
||||||
}
|
|
||||||
@@ -14,22 +14,10 @@ Searched references to pack.A
|
|||||||
Searched references to pack.B
|
Searched references to pack.B
|
||||||
Searched references to pack.C
|
Searched references to pack.C
|
||||||
Searched references to pack.C.component1() in Kotlin files
|
Searched references to pack.C.component1() in Kotlin files
|
||||||
Searched references to pack4.takeExtFun() in Kotlin files
|
|
||||||
Searched references to pack4.takeFun1() in Kotlin files
|
|
||||||
Searched references to pack4.takeFun2() in Kotlin files
|
|
||||||
Searched references to pack4.takeFun3() in Kotlin files
|
|
||||||
Searched references to pack4.takeFuns() in Kotlin files
|
|
||||||
Searched references to pack5.v in Kotlin files
|
|
||||||
Searched references to parameter a in B() in Kotlin files
|
Searched references to parameter a in B() in Kotlin files
|
||||||
Searched references to parameter a in null in Kotlin files
|
Searched references to parameter a in null in Kotlin files
|
||||||
Searched references to parameter b in pack.f() in Kotlin files
|
Searched references to parameter b in pack.f() in Kotlin files
|
||||||
Searched references to parameter c in pack.f() in Kotlin files
|
Searched references to parameter c in pack.f() in Kotlin files
|
||||||
Searched references to parameter p in pack4.foo() in Kotlin files
|
|
||||||
Searched references to parameter p in pack4.takeExtFun() in Kotlin files
|
|
||||||
Searched references to parameter p in pack4.takeFun1() in Kotlin files
|
|
||||||
Searched references to parameter p in pack4.takeFun2() in Kotlin files
|
|
||||||
Searched references to parameter p in pack4.takeFun3() in Kotlin files
|
|
||||||
Searched references to parameter p in pack4.takeFuns() in Kotlin files
|
|
||||||
Used plain search in LocalSearchScope:
|
Used plain search in LocalSearchScope:
|
||||||
CLASS:A
|
CLASS:A
|
||||||
FUN:ext1
|
FUN:ext1
|
||||||
@@ -37,13 +25,6 @@ Used plain search in LocalSearchScope:
|
|||||||
FUN:x
|
FUN:x
|
||||||
KtWhenEntry "else"
|
KtWhenEntry "else"
|
||||||
KtWhenEntry "is A"
|
KtWhenEntry "is A"
|
||||||
{ a, n -> val (x, y) = a!! }
|
|
||||||
{ val (x, y ) = it }
|
|
||||||
{ val (x, y) = it }
|
|
||||||
{ val (x, y) = it }
|
|
||||||
{ val (x, y) = it }
|
|
||||||
{ val (x, y) = it[0] }
|
|
||||||
{ val (x, y) = this }
|
|
||||||
Used plain search in LocalSearchScope:
|
Used plain search in LocalSearchScope:
|
||||||
CLASS:B
|
CLASS:B
|
||||||
Used plain search in LocalSearchScope:
|
Used plain search in LocalSearchScope:
|
||||||
|
|||||||
+1
-8
@@ -16,11 +16,4 @@
|
|||||||
[dataClass.2.kt] Value read 8 val (x, y, z) = a
|
[dataClass.2.kt] Value read 8 val (x, y, z) = a
|
||||||
[dataClass.2.kt] Value read 9 val (x1, y1, z1) = f()
|
[dataClass.2.kt] Value read 9 val (x1, y1, z1) = f()
|
||||||
[dataClass.3.kt] Value read 12 val (x, y, z) = a
|
[dataClass.3.kt] Value read 12 val (x, y, z) = a
|
||||||
[dataClass.3.kt] Value read 15 val (x1, y1, z1) = a1
|
[dataClass.3.kt] Value read 15 val (x1, y1, z1) = a1
|
||||||
[dataClass.4.kt] Value read 18 p[0] = { val (x, y) = it }
|
|
||||||
[dataClass.4.kt] Value read 24 takeExtFun { val (x, y) = this }
|
|
||||||
[dataClass.4.kt] Value read 26 takeFun1 { val (x, y) = it }
|
|
||||||
[dataClass.4.kt] Value read 27 takeFun2 { a, n -> val (x, y) = a!! }
|
|
||||||
[dataClass.4.kt] Value read 28 takeFun3 { val (x, y) = it[0] }
|
|
||||||
[dataClass.4.kt] Value read 30 x(p) { val (x, y) = it }
|
|
||||||
[dataClass.5.kt] Value read 10 "".v = { val (x, y ) = it }
|
|
||||||
+11
-2
@@ -1,6 +1,7 @@
|
|||||||
package pack4
|
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtParameter
|
||||||
|
// OPTIONS: usages
|
||||||
|
|
||||||
import pack.A
|
data class A(val <caret>a: Int, val b: Int)
|
||||||
|
|
||||||
fun takeExtFun(p: A.() -> Unit) {
|
fun takeExtFun(p: A.() -> Unit) {
|
||||||
}
|
}
|
||||||
@@ -29,3 +30,11 @@ fun foo(p: A) {
|
|||||||
|
|
||||||
x(p) { val (x, y) = it }
|
x(p) { val (x, y) = it }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var Any.v: (A) -> Unit
|
||||||
|
get() = TODO()
|
||||||
|
set(value) = TODO()
|
||||||
|
|
||||||
|
fun f() {
|
||||||
|
"".v = { val (x, y ) = it }
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
Searched inheritors of A
|
||||||
|
Searched references to A
|
||||||
|
Searched references to parameter p in foo() in Kotlin files
|
||||||
|
Searched references to parameter p in takeExtFun() in Kotlin files
|
||||||
|
Searched references to parameter p in takeFun1() in Kotlin files
|
||||||
|
Searched references to parameter p in takeFun2() in Kotlin files
|
||||||
|
Searched references to parameter p in takeFun3() in Kotlin files
|
||||||
|
Searched references to parameter p in takeFuns() in Kotlin files
|
||||||
|
Searched references to takeExtFun() in Kotlin files
|
||||||
|
Searched references to takeFun1() in Kotlin files
|
||||||
|
Searched references to takeFun2() in Kotlin files
|
||||||
|
Searched references to takeFun3() in Kotlin files
|
||||||
|
Searched references to takeFuns() in Kotlin files
|
||||||
|
Searched references to v in Kotlin files
|
||||||
|
Used plain search in LocalSearchScope:
|
||||||
|
CLASS:A
|
||||||
|
{ a, n -> val (x, y) = a!! }
|
||||||
|
{ val (x, y ) = it }
|
||||||
|
{ val (x, y) = it }
|
||||||
|
{ val (x, y) = it }
|
||||||
|
{ val (x, y) = it }
|
||||||
|
{ val (x, y) = it[0] }
|
||||||
|
{ val (x, y) = this }
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
Value read 19 p[0] = { val (x, y) = it }
|
||||||
|
Value read 25 takeExtFun { val (x, y) = this }
|
||||||
|
Value read 27 takeFun1 { val (x, y) = it }
|
||||||
|
Value read 28 takeFun2 { a, n -> val (x, y) = a!! }
|
||||||
|
Value read 29 takeFun3 { val (x, y) = it[0] }
|
||||||
|
Value read 31 x(p) { val (x, y) = it }
|
||||||
|
Value read 39 "".v = { val (x, y ) = it }
|
||||||
@@ -206,6 +206,12 @@ public class FindUsagesTestGenerated extends AbstractFindUsagesTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("lambdas.0.kt")
|
||||||
|
public void testLambdas() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/conventions/components/lambdas.0.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("memberComponentFun.0.kt")
|
@TestMetadata("memberComponentFun.0.kt")
|
||||||
public void testMemberComponentFun() throws Exception {
|
public void testMemberComponentFun() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/conventions/components/memberComponentFun.0.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/conventions/components/memberComponentFun.0.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user