diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 22:29:47 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 22:29:47 +0400 |
commit | cec0fc9f3eaa5df8fc2654ce90d87b9be48b16c0 (patch) | |
tree | f019f9483bad3726661609f5e1b3c4a466cb0034 /src/Model/DocumentationBuilder.kt | |
parent | 09935fc1657670eaa8beb1b56718ed267404d7db (diff) | |
download | dokka-cec0fc9f3eaa5df8fc2654ce90d87b9be48b16c0.tar.gz dokka-cec0fc9f3eaa5df8fc2654ce90d87b9be48b16c0.tar.bz2 dokka-cec0fc9f3eaa5df8fc2654ce90d87b9be48b16c0.zip |
Support functions with receivers.
Diffstat (limited to 'src/Model/DocumentationBuilder.kt')
-rw-r--r-- | src/Model/DocumentationBuilder.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Model/DocumentationBuilder.kt b/src/Model/DocumentationBuilder.kt index 73f83ff9..464a5ab2 100644 --- a/src/Model/DocumentationBuilder.kt +++ b/src/Model/DocumentationBuilder.kt @@ -26,6 +26,12 @@ class DocumentationBuilderVisitor(val context: BindingContext) : DeclarationDesc return node } + override fun visitReceiverParameterDescriptor(descriptor: ReceiverParameterDescriptor?, data: DocumentationNode?): DocumentationNode? { + val node = DocumentationNode(descriptor!!.getName().asString(), "", DocumentationNodeKind.Receiver) + data?.addReferenceTo(node, DocumentationReferenceKind.Detail) + return node + } + override fun visitValueParameterDescriptor(descriptor: ValueParameterDescriptor?, data: DocumentationNode?): DocumentationNode? { val doc = context.getDocumentation(descriptor!!) val node = DocumentationNode(descriptor.getName().asString(), doc, DocumentationNodeKind.Parameter) |