Fix search scope of Kotlin light methods
#KT-4638 Fixed
This commit is contained in:
+3
@@ -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 {
|
||||
|
||||
}
|
||||
}
|
||||
+3
@@ -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)
|
||||
}
|
||||
}
|
||||
+3
@@ -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) }
|
||||
}
|
||||
Reference in New Issue
Block a user