diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-20 19:31:48 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-20 19:31:48 +0100 |
commit | b1296e64749b9d7250fe0284f0322ea7713c879a (patch) | |
tree | 0f10d7231332c8132819fdb352692a6e4b0c58ea /src/Kotlin | |
parent | ce4b3b663f1f0bb40f87f288e210e01ffe93e52a (diff) | |
download | dokka-b1296e64749b9d7250fe0284f0322ea7713c879a.tar.gz dokka-b1296e64749b9d7250fe0284f0322ea7713c879a.tar.bz2 dokka-b1296e64749b9d7250fe0284f0322ea7713c879a.zip |
override links for properties
Diffstat (limited to 'src/Kotlin')
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 6 |
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 } |