EA-65705 - ISE: KDocReference.getTargetDescriptors
This commit is contained in:
@@ -58,6 +58,9 @@ public class KDocReference(element: KDocName): JetMultiReference<KDocName>(eleme
|
|||||||
return arrayListOf()
|
return arrayListOf()
|
||||||
}
|
}
|
||||||
val declarationDescriptor = context[BindingContext.DECLARATION_TO_DESCRIPTOR, declaration]
|
val declarationDescriptor = context[BindingContext.DECLARATION_TO_DESCRIPTOR, declaration]
|
||||||
|
if (declarationDescriptor == null) {
|
||||||
|
return arrayListOf()
|
||||||
|
}
|
||||||
val kdocLink = getElement().getStrictParentOfType<KDocLink>()!!
|
val kdocLink = getElement().getStrictParentOfType<KDocLink>()!!
|
||||||
return resolveKDocLink(session, declarationDescriptor, kdocLink.getTagIfSubject(), getElement().getQualifiedName())
|
return resolveKDocLink(session, declarationDescriptor, kdocLink.getTagIfSubject(), getElement().getQualifiedName())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user