KT-6820 Find usages doesn't find delegated properties when searching get/set/propertyDelegated functions
#KT-6820 fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
|
||||
class Delegate() {
|
||||
fun <caret>get(thisRef: Any?, propertyMetadata: PropertyMetadata): String = ":)"
|
||||
}
|
||||
|
||||
val p: String by Delegate()
|
||||
@@ -0,0 +1 @@
|
||||
Property delegation (8: 15) val p: String by Delegate()
|
||||
@@ -0,0 +1,13 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
|
||||
class Delegate() {
|
||||
fun get(thisRef: Any?, propertyMetadata: PropertyMetadata): String = ":)"
|
||||
fun set(thisRef: Any?, propertyMetadata: PropertyMetadata, value: String) {
|
||||
}
|
||||
|
||||
fun <caret>propertyDelegated(propertyMetadata: PropertyMetadata) {
|
||||
}
|
||||
}
|
||||
|
||||
var p: String by Delegate()
|
||||
@@ -0,0 +1 @@
|
||||
Property delegation (13: 15) var p: String by Delegate()
|
||||
@@ -0,0 +1,11 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
|
||||
class Delegate() {
|
||||
fun get(thisRef: Any?, propertyMetadata: PropertyMetadata): String = ":)"
|
||||
fun <caret>set(thisRef: Any?, propertyMetadata: PropertyMetadata, value: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
var p: String by Delegate()
|
||||
@@ -0,0 +1 @@
|
||||
Property delegation (11: 15) var p: String by Delegate()
|
||||
Reference in New Issue
Block a user