diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-27 17:12:31 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-29 11:57:20 +0100 |
commit | 3faa3f2d1c7ca33ad8d98bc6c562e4fe6977225f (patch) | |
tree | ab52ce7c62c485f892e12c05e0c619c44f410cf6 /src/Model/DocumentationNode.kt | |
parent | 44498ab2912d1156ad9d6549353251c9220af888 (diff) | |
download | dokka-3faa3f2d1c7ca33ad8d98bc6c562e4fe6977225f.tar.gz dokka-3faa3f2d1c7ca33ad8d98bc6c562e4fe6977225f.tar.bz2 dokka-3faa3f2d1c7ca33ad8d98bc6c562e4fe6977225f.zip |
summarize signatures for overloaded stdlib functions
Diffstat (limited to 'src/Model/DocumentationNode.kt')
-rw-r--r-- | src/Model/DocumentationNode.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index 04285594..c082365f 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -1,6 +1,6 @@ package org.jetbrains.dokka -import java.util.LinkedHashSet +import java.util.* public open class DocumentationNode(val name: String, content: Content, @@ -27,6 +27,8 @@ public open class DocumentationNode(val name: String, get() = references(DocumentationReference.Kind.Override).map { it.to } public val links: List<DocumentationNode> get() = references(DocumentationReference.Kind.Link).map { it.to } + public val hiddenLinks: List<DocumentationNode> + get() = references(DocumentationReference.Kind.HiddenLink).map { it.to } public val annotations: List<DocumentationNode> get() = references(DocumentationReference.Kind.Annotation).map { it.to } public val deprecation: DocumentationNode? @@ -147,3 +149,5 @@ fun DocumentationNode.appendTextNode(text: String, refKind: DocumentationReference.Kind = DocumentationReference.Kind.Detail) { append(DocumentationNode(text, Content.Empty, kind), refKind) } + +fun DocumentationNode.qualifiedName() = path.drop(1).map { it.name }.filter { it.length > 0 }.joinToString(".") |