aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin/DocumentationBuilder.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <intelliyole@gmail.com>2015-01-13 16:40:49 +0100
committerDmitry Jemerov <intelliyole@gmail.com>2015-01-13 16:40:49 +0100
commitec6fcb4f0a00c66c410c2735af58bb0c5275f9a9 (patch)
treedd229d28ae73a3cabe74fdd42712fd08294feee6 /src/Kotlin/DocumentationBuilder.kt
parent891cc8569d535c3ac5ade23d7fd56dbca619e05b (diff)
parent2e277ba086f727c755e584f93280cb4d00e7444e (diff)
downloaddokka-ec6fcb4f0a00c66c410c2735af58bb0c5275f9a9.tar.gz
dokka-ec6fcb4f0a00c66c410c2735af58bb0c5275f9a9.tar.bz2
dokka-ec6fcb4f0a00c66c410c2735af58bb0c5275f9a9.zip
Merge pull request #12 from orangy/varargs
correcty represent vararg parameters
Diffstat (limited to 'src/Kotlin/DocumentationBuilder.kt')
-rw-r--r--src/Kotlin/DocumentationBuilder.kt8
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