Add location string showing where method or property is defined
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
trait First
|
||||
|
||||
trait Second : First {
|
||||
fun foo()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
-DoNotShowParentsInLocationJava.kt
|
||||
-Third
|
||||
equals(Any?): Boolean location=→Any
|
||||
foo(): Unit location=→Second
|
||||
hashCode(): Int location=→Any
|
||||
toString(): String location=→Any
|
||||
@@ -0,0 +1,3 @@
|
||||
trait Third: Second
|
||||
|
||||
// WITH_INHERITED
|
||||
@@ -1,6 +1,6 @@
|
||||
-InheritedInnerClasses.kt
|
||||
-B : A
|
||||
equals(Any?): Boolean
|
||||
foo(): Unit
|
||||
hashCode(): Int
|
||||
toString(): String
|
||||
-B
|
||||
equals(Any?): Boolean location=→Any
|
||||
foo(): Unit location=→A
|
||||
hashCode(): Int location=→Any
|
||||
toString(): String location=→Any
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
-InheritedJavaMembers.kt
|
||||
-InheritedJavaMembers : Callable<String>
|
||||
call(): String?
|
||||
clone(): Any
|
||||
equals(Any?): Boolean
|
||||
finalize(): Unit
|
||||
getClass(): Class<out Any?>
|
||||
hashCode(): Int
|
||||
notify(): Unit
|
||||
notifyAll(): Unit
|
||||
-InheritedJavaMembers
|
||||
call(): String? location=→Callable
|
||||
clone(): Any location=→Object
|
||||
equals(Any?): Boolean location=→Any
|
||||
finalize(): Unit location=→Object
|
||||
getClass(): Class<out Any?> location=→Object
|
||||
hashCode(): Int location=→Any
|
||||
notify(): Unit location=→Object
|
||||
notifyAll(): Unit location=→Object
|
||||
test(): Unit
|
||||
toString(): String
|
||||
wait(): Unit
|
||||
wait(Long): Unit
|
||||
wait(Long, Int): Unit
|
||||
toString(): String location=→Any
|
||||
wait(): Unit location=→Object
|
||||
wait(Long): Unit location=→Object
|
||||
wait(Long, Int): Unit location=→Object
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
-InheritedLocalKotlin.kt
|
||||
-A : TA
|
||||
equals(Any?): Boolean
|
||||
hashCode(): Int
|
||||
some(): Unit
|
||||
toString(): String
|
||||
-B : TA
|
||||
-A
|
||||
a: Int
|
||||
equals(Any?): Boolean location=→Any
|
||||
hashCode(): Int location=→Any
|
||||
some(): Unit
|
||||
toString(): String location=→Any
|
||||
-B
|
||||
a: Int location=→TA
|
||||
some(): Unit location=→TA
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
trait TA {
|
||||
fun some()
|
||||
val a: Int
|
||||
}
|
||||
|
||||
class A : TA {
|
||||
override fun some() {
|
||||
}
|
||||
|
||||
override val a: Int = 0
|
||||
}
|
||||
|
||||
abstract class B : TA
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-InheritedMembers.kt
|
||||
-Test
|
||||
equals(Any?): Boolean
|
||||
hashCode(): Int
|
||||
equals(Any?): Boolean location=→Any
|
||||
hashCode(): Int location=→Any
|
||||
test(): Unit
|
||||
toString(): String
|
||||
toString(): String location=→Any
|
||||
|
||||
+6
-6
@@ -1,7 +1,7 @@
|
||||
-InheritedMembersWithSubstitutedTypes.kt
|
||||
-Third : Second<String>
|
||||
a: U
|
||||
equals(Any?): Boolean
|
||||
foo(T): Unit
|
||||
hashCode(): Int
|
||||
toString(): String
|
||||
-Third
|
||||
a: U location=→Second
|
||||
equals(Any?): Boolean location=→Any
|
||||
foo(T): Unit location=→First
|
||||
hashCode(): Int location=→Any
|
||||
toString(): String location=→Any
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
a: Int
|
||||
a: String on Comparable<T>
|
||||
b: Any
|
||||
-Enum1 : Enum<Enum1>
|
||||
FIRST : Enum1
|
||||
SECOND : Enum1
|
||||
-Enum1
|
||||
FIRST
|
||||
SECOND
|
||||
extension1() on String: Unit
|
||||
extension2() on Comparable<T>: Unit
|
||||
test1(): Unit
|
||||
@@ -34,7 +34,7 @@
|
||||
TestWithWhere
|
||||
testWithWhere(): Unit
|
||||
Trait
|
||||
Trait1 : Trait
|
||||
Trait1
|
||||
withDefaulArgs(Int = ..., String = ...): Unit
|
||||
-WithDefaultArgs
|
||||
a: Int
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-SeveralClasses.kt
|
||||
A
|
||||
B
|
||||
Other : A
|
||||
Some : B, A
|
||||
Other
|
||||
Some
|
||||
|
||||
Reference in New Issue
Block a user