Find Usages: Include super declarations when highliting usages in the current file

This commit is contained in:
Alexey Sedunov
2015-10-22 17:49:44 +03:00
committed by Alexey Sedunov
parent 9c360ef05a
commit ad0c12935b
7 changed files with 70 additions and 4 deletions
@@ -0,0 +1,17 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
// OPTIONS: usages, skipImports
// HIGHLIGHTING
open class A : I {
open fun foo() {}
}
class B: A() {
override fun <caret>foo() {}
}
fun test(i: I) {
i.foo()
A().foo()
B().foo()
}
@@ -0,0 +1,3 @@
interface I {
void foo();
}
@@ -0,0 +1,3 @@
Function call (14: 7) i.foo()
Function call (15: 9) A().foo()
Function call (16: 9) B().foo()