Find Usages: Rename test class and move test data
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// PSI_ELEMENT: com.intellij.psi.PsiClass
|
||||
// OPTIONS: usages
|
||||
// FIND_BY_REF
|
||||
package usages
|
||||
|
||||
import library.Foo
|
||||
|
||||
fun test() {
|
||||
val foo: <caret>Foo
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Local variable declaration (9: 14) val foo: Foo
|
||||
Usage in import (6: 16) import library.Foo
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// PSI_ELEMENT: com.intellij.psi.PsiMethod
|
||||
// OPTIONS: usages
|
||||
// FIND_BY_REF
|
||||
package usages
|
||||
|
||||
import library.Foo
|
||||
|
||||
fun test() {
|
||||
<caret>Foo(1)
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
New instance creation (9: 5) Foo(1)
|
||||
@@ -0,0 +1,10 @@
|
||||
// PSI_ELEMENT: com.intellij.psi.PsiField
|
||||
// OPTIONS: usages
|
||||
// FIND_BY_REF
|
||||
package usages
|
||||
|
||||
import library.Foo
|
||||
|
||||
fun test() {
|
||||
Foo().<caret>x = 1
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Value write (9: 11) Foo().x = 1
|
||||
@@ -0,0 +1,10 @@
|
||||
// PSI_ELEMENT: com.intellij.psi.PsiMethod
|
||||
// OPTIONS: usages
|
||||
// FIND_BY_REF
|
||||
package usages
|
||||
|
||||
import library.Foo
|
||||
|
||||
fun test() {
|
||||
Foo().<caret>bar(1)
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Function call (9: 11) Foo().bar(1)
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// PSI_ELEMENT: com.intellij.psi.PsiField
|
||||
// OPTIONS: usages
|
||||
// FIND_BY_REF
|
||||
package usages
|
||||
|
||||
import library.Foo
|
||||
|
||||
fun test() {
|
||||
Foo.<caret>X = 1
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Value write (9: 9) Foo.X = 1
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// PSI_ELEMENT: com.intellij.psi.PsiMethod
|
||||
// OPTIONS: usages
|
||||
// FIND_BY_REF
|
||||
package usages
|
||||
|
||||
import library.Foo
|
||||
|
||||
fun test() {
|
||||
Foo.<caret>baz(1)
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Function call (9: 9) Foo.baz(1)
|
||||
Reference in New Issue
Block a user