EA-65705 - ISE: KDocReference.getTargetDescriptors

This commit is contained in:
Dmitry Jemerov
2015-03-03 12:31:40 +01:00
parent 2cc291efdb
commit ff3cb27c8f
@@ -58,6 +58,9 @@ public class KDocReference(element: KDocName): JetMultiReference<KDocName>(eleme
return arrayListOf()
}
val declarationDescriptor = context[BindingContext.DECLARATION_TO_DESCRIPTOR, declaration]
if (declarationDescriptor == null) {
return arrayListOf()
}
val kdocLink = getElement().getStrictParentOfType<KDocLink>()!!
return resolveKDocLink(session, declarationDescriptor, kdocLink.getTagIfSubject(), getElement().getQualifiedName())
}