Show call sites of overriden members in "Caller Hierarchy"
#KT-4395 Fixed
This commit is contained in:
+10
-10
@@ -1,12 +1,12 @@
|
||||
<node text="KA.foo(String) ()" base="true">
|
||||
<node text="KClientObj ()"/>
|
||||
<node text="JA.foo() ()"/>
|
||||
<node text="packageFun(String) ()"/>
|
||||
<node text="KClient ()"/>
|
||||
<node text="KClient ()"/>
|
||||
<node text="bar.localFun() ()"/>
|
||||
<node text="KClient.bar() ()"/>
|
||||
<node text="KClient.bar ()"/>
|
||||
<node text="main0.kt ()"/>
|
||||
<node text="JA ()"/>
|
||||
<node text="JA(2 usages) ()"/>
|
||||
<node text="JA.foo()(2 usages) ()"/>
|
||||
<node text="KClient(2 usages) ()"/>
|
||||
<node text="KClient(2 usages) ()"/>
|
||||
<node text="KClient.bar()(2 usages) ()"/>
|
||||
<node text="KClient.bar(2 usages) ()"/>
|
||||
<node text="KClientObj(2 usages) ()"/>
|
||||
<node text="bar.localFun()(2 usages) ()"/>
|
||||
<node text="main0.kt(2 usages) ()"/>
|
||||
<node text="packageFun(String)(2 usages) ()"/>
|
||||
</node>
|
||||
|
||||
@@ -1,31 +1,37 @@
|
||||
class KA {
|
||||
val name = "A"
|
||||
fun <caret>foo(s: String): String = "A: $s"
|
||||
open class KBase {
|
||||
open fun foo(s: String): String = s
|
||||
}
|
||||
|
||||
fun packageFun(s: String): String = KA().foo(s)
|
||||
class KA: KBase() {
|
||||
val name = "A"
|
||||
override fun <caret>foo(s: String): String = "A: $s"
|
||||
}
|
||||
|
||||
val packageVal = KA().foo("")
|
||||
fun packageFun(s: String): String = KBase().foo("") + KA().foo(s)
|
||||
|
||||
val packageVal = KBase().foo("") + KA().foo("")
|
||||
|
||||
class KClient {
|
||||
{
|
||||
KA().foo("")
|
||||
KBase().foo("")
|
||||
}
|
||||
|
||||
class object {
|
||||
val a = KA().foo("")
|
||||
val a = KBase().foo("") + KA().foo("")
|
||||
}
|
||||
|
||||
val bar: String
|
||||
get() = KA().foo("")
|
||||
get() = KBase().foo("") + KA().foo("")
|
||||
|
||||
fun bar() {
|
||||
fun localFun() = KA().foo("")
|
||||
fun localFun() = KBase().foo("") + KA().foo("")
|
||||
|
||||
KA().foo("")
|
||||
KBase().foo("")
|
||||
}
|
||||
}
|
||||
|
||||
object KClientObj {
|
||||
val a = KA().foo("")
|
||||
val a = KBase().foo("") + KA().foo("")
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
class JA {
|
||||
public String name = new KA().foo("");
|
||||
public String name = new KBase().foo("") + new KA().foo("");
|
||||
|
||||
public String foo() {
|
||||
return new KA().foo("");
|
||||
return new KBase().foo("") + new KA().foo("");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user