FIR IDE: Add fine-grained control to KtReferenceShortener
This change makes it possible to control how references to a symbol should be shortened.
This commit is contained in:
committed by
TeamCityServer
parent
8ac2a48eaf
commit
726d141589
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
open class Base<A, B, C>() {
|
||||
open val method : (A?) -> A = { it!! }
|
||||
open fun foo(value : B) : B = value
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
open class Base<A, B, C>() {
|
||||
open val method : (A?) -> A = { it!! }
|
||||
open fun foo(value : B) : B = value
|
||||
|
||||
-30
@@ -1,30 +0,0 @@
|
||||
open class Base<A, B, C>() {
|
||||
open val method : (A?) -> A = { it!! }
|
||||
open fun foo(value : B) : B = value
|
||||
open fun bar(value : () -> C) : (String) -> C = { value() }
|
||||
}
|
||||
|
||||
class C : Base<String, C, Unit>() {
|
||||
override fun bar(value: () -> Unit): (String) -> Unit {
|
||||
<selection><caret>return super.bar(value)</selection>
|
||||
}
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return super.equals(other)
|
||||
}
|
||||
|
||||
override fun foo(value: C): C {
|
||||
return super.foo(value)
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return super.hashCode()
|
||||
}
|
||||
|
||||
override val method: (String?) -> String
|
||||
get() = method
|
||||
|
||||
override fun toString(): String {
|
||||
return super.toString()
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -7,7 +7,7 @@ class C : A() {
|
||||
val constant = 42
|
||||
// Some comment
|
||||
override val bar: Int
|
||||
get() = <selection><caret>bar</selection>
|
||||
get() = <selection><caret>super.bar</selection>
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
return super.equals(other)
|
||||
|
||||
Reference in New Issue
Block a user