aboutsummaryrefslogtreecommitdiff
path: root/src/Model/DocumentationNodeBuilder.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 01:14:07 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 01:14:07 +0400
commit2878f900d17625dd13944424d8ddf55f7eb03ac4 (patch)
treeffd7f30aea103412b05b3ff955032243e44b5e0e /src/Model/DocumentationNodeBuilder.kt
parent046265ea04b645b4f8ff835aa6c3ff9879501aed (diff)
downloaddokka-2878f900d17625dd13944424d8ddf55f7eb03ac4.tar.gz
dokka-2878f900d17625dd13944424d8ddf55f7eb03ac4.tar.bz2
dokka-2878f900d17625dd13944424d8ddf55f7eb03ac4.zip
Add Trait kind and handle it
Diffstat (limited to 'src/Model/DocumentationNodeBuilder.kt')
-rw-r--r--src/Model/DocumentationNodeBuilder.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Model/DocumentationNodeBuilder.kt b/src/Model/DocumentationNodeBuilder.kt
index 1c451465..aa0c4700 100644
--- a/src/Model/DocumentationNodeBuilder.kt
+++ b/src/Model/DocumentationNodeBuilder.kt
@@ -35,6 +35,7 @@ class DocumentationNodeBuilder(val context: BindingContext) : DeclarationDescrip
val doc = context.getDocumentation(descriptor!!)
val node = DocumentationNode(descriptor.getName().asString(), doc, when (descriptor.getKind()) {
ClassKind.OBJECT -> DocumentationNodeKind.Object
+ ClassKind.TRAIT -> DocumentationNodeKind.Trait
else -> DocumentationNodeKind.Class
}, context.getResolutionScope(descriptor))
data!!.addReferenceTo(node, DocumentationReferenceKind.Member)