diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2014-12-30 16:34:08 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2014-12-30 16:37:19 +0100 |
commit | ef51f7e2466e28db0943d528b6b489aefd098c0d (patch) | |
tree | fed7da99ea57a6cd5443d2fb40ae90c38431d800 /src/Model/DocumentationNode.kt | |
parent | 5f47bc17630ef1457b36054dc8b19011d9d14132 (diff) | |
download | dokka-ef51f7e2466e28db0943d528b6b489aefd098c0d.tar.gz dokka-ef51f7e2466e28db0943d528b6b489aefd098c0d.tar.bz2 dokka-ef51f7e2466e28db0943d528b6b489aefd098c0d.zip |
annotations work in progress
Diffstat (limited to 'src/Model/DocumentationNode.kt')
-rw-r--r-- | src/Model/DocumentationNode.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index 86d2ee04..783dea1c 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -30,6 +30,8 @@ public open class DocumentationNode(val name: String, get() = references(DocumentationReference.Kind.Inheritor).map { it.to } public val links: List<DocumentationNode> get() = references(DocumentationReference.Kind.Link).map { it.to } + public val annotations: List<DocumentationNode> + get() = references(DocumentationReference.Kind.Annotation).map { it.to } // TODO: Should we allow node mutation? Model merge will copy by ref, so references are transparent, which could nice public fun addReferenceTo(to: DocumentationNode, kind: DocumentationReference.Kind) { @@ -85,6 +87,8 @@ public open class DocumentationNode(val name: String, Modifier Module + + Annotation } } |