From 2e277ba086f727c755e584f93280cb4d00e7444e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 13 Jan 2015 16:38:41 +0100 Subject: correcty represent vararg parameters --- src/Kotlin/DocumentationBuilder.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Kotlin') 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 -- cgit