mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-02 08:31:31 +00:00
Split test
This commit is contained in:
9
idea/testData/findUsages/kotlin/conventions/components/SAM.0.java
vendored
Normal file
9
idea/testData/findUsages/kotlin/conventions/components/SAM.0.java
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import pack.A;
|
||||
|
||||
class JavaClass {
|
||||
public void takeSAM(JavaSAM sam){}
|
||||
}
|
||||
|
||||
public interface JavaSAM {
|
||||
void takeA(A a);
|
||||
}
|
||||
5
idea/testData/findUsages/kotlin/conventions/components/SAM.0.kt
vendored
Normal file
5
idea/testData/findUsages/kotlin/conventions/components/SAM.0.kt
vendored
Normal file
@@ -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)
|
||||
7
idea/testData/findUsages/kotlin/conventions/components/SAM.log
vendored
Normal file
7
idea/testData/findUsages/kotlin/conventions/components/SAM.log
vendored
Normal file
@@ -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 }
|
||||
1
idea/testData/findUsages/kotlin/conventions/components/SAM.results.txt
vendored
Normal file
1
idea/testData/findUsages/kotlin/conventions/components/SAM.results.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Value read 4 javaClass.takeSAM { val (x, y) = it }
|
||||
@@ -1,4 +1,3 @@
|
||||
import kotlin.Unit;
|
||||
import pack.A;
|
||||
|
||||
import java.util.Collections;
|
||||
@@ -11,10 +10,4 @@ class JavaClass {
|
||||
}
|
||||
|
||||
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.C
|
||||
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 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[0] }
|
||||
{ val (x, y) = this }
|
||||
Used plain search in LocalSearchScope:
|
||||
|
||||
@@ -23,5 +23,4 @@
|
||||
[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 }
|
||||
[dataClass.6.kt] Value read 4 javaClass.takeSAM { val (x, y) = it }
|
||||
[dataClass.5.kt] Value read 10 "".v = { 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");
|
||||
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