Fix search scope of Kotlin light methods

#KT-4638 Fixed
This commit is contained in:
Alexey Sedunov
2014-03-04 14:56:06 +04:00
parent 3729966270
commit 1edaa877dc
8 changed files with 55 additions and 0 deletions
@@ -0,0 +1,3 @@
<node text="Tester.Test ()" base="true">
<node text="Tester.test() ()"/>
</node>
@@ -0,0 +1,9 @@
open class Tester {
open fun test() {
val test = Test()
}
private class <caret>Test {
}
}
@@ -0,0 +1,3 @@
<node text="Tester.privateTest() ()" base="true">
<node text="Tester.test() ()"/>
</node>
@@ -0,0 +1,9 @@
open class Tester {
open fun test() {
privateTest()
}
private fun <caret>privateTest() {
println(this)
}
}
@@ -0,0 +1,3 @@
<node text="Tester.privateTest ()" base="true">
<node text="Tester.test()(2 usages) ()"/>
</node>
@@ -0,0 +1,10 @@
open class Tester {
open fun test() {
privateTest = "test"
println(privateTest)
}
private var <caret>privateTest: String
get() = ""
set(value) { println(value) }
}