diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 00:35:57 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 00:35:57 +0400 |
commit | 5efc1a313aaef947b14439bbbff54b96369968de (patch) | |
tree | 802d177d5b76c839712e43ca7ba086ce4f367d92 /src | |
parent | 2ebfb98fb887c7697be3ed28dc357094036780bc (diff) | |
download | dokka-5efc1a313aaef947b14439bbbff54b96369968de.tar.gz dokka-5efc1a313aaef947b14439bbbff54b96369968de.tar.bz2 dokka-5efc1a313aaef947b14439bbbff54b96369968de.zip |
Fix extension properties
Diffstat (limited to 'src')
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt index 5230d882..7f8a423e 100644 --- a/src/Kotlin/DocumentationBuilder.kt +++ b/src/Kotlin/DocumentationBuilder.kt @@ -193,8 +193,9 @@ class DocumentationBuilder(val context: BindingContext, val options: Documentati fun PropertyDescriptor.build(): DocumentationNode { val node = DocumentationNode(this, Kind.Property) - node.appendType(getReturnType()) node.appendChildren(getTypeParameters(), DocumentationReference.Kind.Detail) + getExtensionReceiverParameter()?.let { node.appendChild(it, DocumentationReference.Kind.Detail) } + node.appendType(getReturnType()) getGetter()?.let { if (!it.isDefault()) node.appendChild(it, DocumentationReference.Kind.Member) |