diff options
Diffstat (limited to 'src/Kotlin/CrossReferences.kt')
-rw-r--r-- | src/Kotlin/CrossReferences.kt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Kotlin/CrossReferences.kt b/src/Kotlin/CrossReferences.kt index bfab8309..c06b81d4 100644 --- a/src/Kotlin/CrossReferences.kt +++ b/src/Kotlin/CrossReferences.kt @@ -1,7 +1,5 @@ package org.jetbrains.dokka -import org.jetbrains.jet.lang.descriptors.ClassKind - /** * Generates cross-references for documentation such as extensions for a type * @@ -26,6 +24,15 @@ public fun DocumentationContext.buildCrossReferences(node: DocumentationNode) { typeNode?.addReferenceTo(node, DocumentationReference.Kind.Inheritor) } } + node.details.forEach { detail -> + val descriptor = relations[detail] + if (descriptor != null) { + val typeNode = descriptorToNode[descriptor] + if (typeNode != null) { + detail.addReferenceTo(typeNode, DocumentationReference.Kind.Link) + } + } + } for (child in node.members) { buildCrossReferences(child) |