Find Usages: Support text-file search of Kotlin declarations

This commit is contained in:
Alexey Sedunov
2014-12-15 17:17:38 +03:00
parent 7924568355
commit b5fb09b8bc
10 changed files with 64 additions and 5 deletions
@@ -0,0 +1,7 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetClass
// OPTIONS: textOccurrences
package test
class <caret>Foo {
}
@@ -0,0 +1,2 @@
test.Foo
Foo
@@ -0,0 +1 @@
Unclassified usage (1: 1) test.Foo
@@ -0,0 +1,9 @@
// PSI_ELEMENT: org.jetbrains.jet.lang.psi.JetNamedFunction
// OPTIONS: textOccurrences
package test
class Foo {
fun <caret>foo() {
}
}
@@ -0,0 +1 @@
Function foo is defined in class Foo
@@ -0,0 +1 @@
Unclassified usage (1: 10) Function foo is defined in class Foo