diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-13 16:38:41 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-13 16:38:41 +0100 |
commit | 2e277ba086f727c755e584f93280cb4d00e7444e (patch) | |
tree | dd229d28ae73a3cabe74fdd42712fd08294feee6 /src/Kotlin | |
parent | 891cc8569d535c3ac5ade23d7fd56dbca619e05b (diff) | |
download | dokka-2e277ba086f727c755e584f93280cb4d00e7444e.tar.gz dokka-2e277ba086f727c755e584f93280cb4d00e7444e.tar.bz2 dokka-2e277ba086f727c755e584f93280cb4d00e7444e.zip |
correcty represent vararg parameters
Diffstat (limited to 'src/Kotlin')
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt index a9b017bb..40c6d745 100644 --- a/src/Kotlin/DocumentationBuilder.kt +++ b/src/Kotlin/DocumentationBuilder.kt @@ -293,7 +293,13 @@ class DocumentationBuilder(val session: ResolveSession, val options: Documentati fun ValueParameterDescriptor.build(): DocumentationNode { val node = DocumentationNode(this, Kind.Parameter) - node.appendType(getType()) + val varargType = getVarargElementType() + if (varargType != null) { + node.append(DocumentationNode("vararg", Content.Empty, Kind.Annotation), DocumentationReference.Kind.Annotation) + node.appendType(varargType) + } else { + node.appendType(getType()) + } node.appendAnnotations(this) register(this, node) return node |