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.kt3
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)