diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 01:14:07 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 01:14:07 +0400 |
commit | 2878f900d17625dd13944424d8ddf55f7eb03ac4 (patch) | |
tree | ffd7f30aea103412b05b3ff955032243e44b5e0e /src | |
parent | 046265ea04b645b4f8ff835aa6c3ff9879501aed (diff) | |
download | dokka-2878f900d17625dd13944424d8ddf55f7eb03ac4.tar.gz dokka-2878f900d17625dd13944424d8ddf55f7eb03ac4.tar.bz2 dokka-2878f900d17625dd13944424d8ddf55f7eb03ac4.zip |
Add Trait kind and handle it
Diffstat (limited to 'src')
-rw-r--r-- | src/Model/DocumentationModel.kt | 1 | ||||
-rw-r--r-- | src/Model/DocumentationNodeBuilder.kt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Model/DocumentationModel.kt b/src/Model/DocumentationModel.kt index 06bc3775..90fe40e4 100644 --- a/src/Model/DocumentationModel.kt +++ b/src/Model/DocumentationModel.kt @@ -9,6 +9,7 @@ public enum class DocumentationNodeKind { Package Class + Trait Object Constructor 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) |