KT-6821 Go to reference on "by" keyword in delegated property doesn't navigate to propertyDelegated

#KT-6821 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-03-04 19:31:49 +03:00
parent 9a17bce179
commit 0a824edace
4 changed files with 12 additions and 8 deletions
@@ -42,9 +42,9 @@ public class JetPropertyDelegationMethodsReference(element: JetPropertyDelegate)
if (descriptor !is PropertyDescriptor) {
return Collections.emptyList()
}
return descriptor.getAccessors().map {
return (descriptor.getAccessors().map {
accessor ->
context.get(BindingContext.DELEGATED_PROPERTY_RESOLVED_CALL, accessor)?.getCandidateDescriptor()
}.filterNotNull()
} + listOf(context.get(BindingContext.DELEGATED_PROPERTY_PD_RESOLVED_CALL, descriptor)?.getCandidateDescriptor())).filterNotNull()
}
}