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) }
|
||||
}
|
||||
@@ -297,6 +297,21 @@ public class HierarchyTestGenerated extends AbstractHierarchyTest {
|
||||
doCallerHierarchyTest("idea/testData/hierarchy/calls/callers/kotlinPackageProperty");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinPrivateClass")
|
||||
public void testKotlinPrivateClass() throws Exception {
|
||||
doCallerHierarchyTest("idea/testData/hierarchy/calls/callers/kotlinPrivateClass");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinPrivateFunction")
|
||||
public void testKotlinPrivateFunction() throws Exception {
|
||||
doCallerHierarchyTest("idea/testData/hierarchy/calls/callers/kotlinPrivateFunction");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinPrivateProperty")
|
||||
public void testKotlinPrivateProperty() throws Exception {
|
||||
doCallerHierarchyTest("idea/testData/hierarchy/calls/callers/kotlinPrivateProperty");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinProperty")
|
||||
public void testKotlinProperty() throws Exception {
|
||||
doCallerHierarchyTest("idea/testData/hierarchy/calls/callers/kotlinProperty");
|
||||
|
||||
Reference in New Issue
Block a user