aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin/DocumentationBuilder.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Kotlin/DocumentationBuilder.kt')
-rw-r--r--src/Kotlin/DocumentationBuilder.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt
index dae1c4ea..9d9aea54 100644
--- a/src/Kotlin/DocumentationBuilder.kt
+++ b/src/Kotlin/DocumentationBuilder.kt
@@ -360,7 +360,7 @@ class DocumentationBuilder(val session: ResolveSession,
return node
}
- fun addOverrideLink(baseClassFunction: FunctionDescriptor, overridingFunction: FunctionDescriptor) {
+ fun addOverrideLink(baseClassFunction: CallableMemberDescriptor, overridingFunction: CallableMemberDescriptor) {
val source = baseClassFunction.getOriginal().getSource().getPsi()
if (source != null) {
link(overridingFunction, baseClassFunction, DocumentationReference.Kind.Override)
@@ -401,6 +401,10 @@ class DocumentationBuilder(val session: ResolveSession,
node.appendChild(it, DocumentationReference.Kind.Member)
}
+ getOverriddenDescriptors().forEach {
+ addOverrideLink(it, this)
+ }
+
register(this, node)
return node
}