diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-04-27 20:44:36 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-04-27 20:44:36 +0200 |
commit | e33ea05d10a35adfe6835dce291080d9843e6b71 (patch) | |
tree | 8a831b0c26d94b86599f41e844f7b3ec57236611 /core/src/main/kotlin/Model | |
parent | 6ce0bdf71e76a14e6aedd44cb3987185816fc642 (diff) | |
download | dokka-e33ea05d10a35adfe6835dce291080d9843e6b71.tar.gz dokka-e33ea05d10a35adfe6835dce291080d9843e6b71.tar.bz2 dokka-e33ea05d10a35adfe6835dce291080d9843e6b71.zip |
Use FQ name instead of simple name to identify array classes. Resolves #68
Diffstat (limited to 'core/src/main/kotlin/Model')
-rw-r--r-- | core/src/main/kotlin/Model/DocumentationNode.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Model/DocumentationNode.kt b/core/src/main/kotlin/Model/DocumentationNode.kt index afa513d1..33543aff 100644 --- a/core/src/main/kotlin/Model/DocumentationNode.kt +++ b/core/src/main/kotlin/Model/DocumentationNode.kt @@ -168,4 +168,9 @@ fun DocumentationNode.appendTextNode(text: String, append(DocumentationNode(text, Content.Empty, kind), refKind) } -fun DocumentationNode.qualifiedName() = path.drop(1).map { it.name }.filter { it.length > 0 }.joinToString(".") +fun DocumentationNode.qualifiedName(): String { + if (kind == NodeKind.Type) { + return qualifiedNameFromType() + } + return path.drop(1).map { it.name }.filter { it.length > 0 }.joinToString(".") +} |