From 5efc1a313aaef947b14439bbbff54b96369968de Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 13 Oct 2014 00:35:57 +0400 Subject: Fix extension properties --- src/Kotlin/DocumentationBuilder.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) -- cgit