Split test
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
import pack.A;
|
||||||
|
|
||||||
|
class JavaClass {
|
||||||
|
public void takeSAM(JavaSAM sam){}
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface JavaSAM {
|
||||||
|
void takeA(A a);
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtParameter
|
||||||
|
// OPTIONS: usages
|
||||||
|
package pack
|
||||||
|
|
||||||
|
data class A(val <caret>a: Int, val b: String)
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
Searched inheritors of pack.A
|
||||||
|
Searched references to JavaClass.takeSAM() in Kotlin files
|
||||||
|
Searched references to JavaSAM in java files
|
||||||
|
Searched references to pack.A
|
||||||
|
Used plain search in LocalSearchScope:
|
||||||
|
CLASS:A
|
||||||
|
{ val (x, y) = it }
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Value read 4 javaClass.takeSAM { val (x, y) = it }
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
import kotlin.Unit;
|
|
||||||
import pack.A;
|
import pack.A;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@@ -11,10 +10,4 @@ class JavaClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void takeA(A a){}
|
public void takeA(A a){}
|
||||||
|
|
||||||
public void takeSAM(JavaSAM sam){}
|
|
||||||
}
|
|
||||||
|
|
||||||
public interface JavaSAM {
|
|
||||||
void takeA(A a);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ Searched inheritors of pack.A
|
|||||||
Searched inheritors of pack.B
|
Searched inheritors of pack.B
|
||||||
Searched inheritors of pack.C
|
Searched inheritors of pack.C
|
||||||
Searched references to JavaClass.getA() in Kotlin files
|
Searched references to JavaClass.getA() in Kotlin files
|
||||||
Searched references to JavaClass.takeSAM() in Kotlin files
|
|
||||||
Searched references to JavaSAM in java files
|
|
||||||
Searched references to a in Kotlin files
|
Searched references to a 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
|
||||||
@@ -44,7 +42,6 @@ Used plain search in LocalSearchScope:
|
|||||||
{ val (x, y) = it }
|
{ val (x, y) = it }
|
||||||
{ val (x, y) = it }
|
{ val (x, y) = it }
|
||||||
{ val (x, y) = it }
|
{ val (x, y) = it }
|
||||||
{ val (x, y) = it }
|
|
||||||
{ val (x, y) = it[0] }
|
{ val (x, y) = it[0] }
|
||||||
{ val (x, y) = this }
|
{ val (x, y) = this }
|
||||||
Used plain search in LocalSearchScope:
|
Used plain search in LocalSearchScope:
|
||||||
|
|||||||
+1
-2
@@ -23,5 +23,4 @@
|
|||||||
[dataClass.4.kt] Value read 27 takeFun2 { a, n -> val (x, y) = a!! }
|
[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 28 takeFun3 { val (x, y) = it[0] }
|
||||||
[dataClass.4.kt] Value read 30 x(p) { val (x, y) = it }
|
[dataClass.4.kt] Value read 30 x(p) { val (x, y) = it }
|
||||||
[dataClass.5.kt] Value read 10 "".v = { val (x, y ) = it }
|
[dataClass.5.kt] Value read 10 "".v = { val (x, y ) = it }
|
||||||
[dataClass.6.kt] Value read 4 javaClass.takeSAM { val (x, y) = it }
|
|
||||||
@@ -211,6 +211,12 @@ public class FindUsagesTestGenerated extends AbstractFindUsagesTest {
|
|||||||
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");
|
||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("SAM.0.kt")
|
||||||
|
public void testSAM() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/findUsages/kotlin/conventions/components/SAM.0.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user