diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 22:09:41 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 22:09:41 +0400 |
commit | b511259a37aa9feee06a3ca92b7967552aa34104 (patch) | |
tree | 683946a6e0868c10e95f814ec8996b99a9fab08d /src/Model/DocumentationBuilder.kt | |
parent | c0f820f4a4dfddbee06cb4c62a3b4609611dac62 (diff) | |
download | dokka-b511259a37aa9feee06a3ca92b7967552aa34104.tar.gz dokka-b511259a37aa9feee06a3ca92b7967552aa34104.tar.bz2 dokka-b511259a37aa9feee06a3ca92b7967552aa34104.zip |
Support type parameters for functions and classes.
Diffstat (limited to 'src/Model/DocumentationBuilder.kt')
-rw-r--r-- | src/Model/DocumentationBuilder.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Model/DocumentationBuilder.kt b/src/Model/DocumentationBuilder.kt index e28d437f..2afe366b 100644 --- a/src/Model/DocumentationBuilder.kt +++ b/src/Model/DocumentationBuilder.kt @@ -51,6 +51,13 @@ class DocumentationBuilderVisitor(val context: BindingContext) : DeclarationDesc return node } + override fun visitTypeParameterDescriptor(descriptor: TypeParameterDescriptor?, data: DocumentationNode?): DocumentationNode? { + val doc = context.getDocumentation(descriptor!!) + val node = DocumentationNode(descriptor.getName().asString(), doc, DocumentationNodeKind.TypeParameter) + data?.addReferenceTo(node, DocumentationReferenceKind.Detail) + return node + } + override fun visitPropertyDescriptor(descriptor: PropertyDescriptor?, data: DocumentationNode?): DocumentationNode? { val doc = context.getDocumentation(descriptor!!) val node = DocumentationNode(descriptor.getName().asString(), doc, DocumentationNodeKind.Property) |