aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Kotlin
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-10-09 18:50:54 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-10-09 18:50:54 +0300
commitc202931be1fc2a0e57ad1cb26931b80055b9df65 (patch)
tree239ef08090ee0f8979dca0448ea85e1817fdaebd /core/src/main/kotlin/Kotlin
parentaa3534c8e13f69ebb2700f24065cdb0c3f14b512 (diff)
downloaddokka-c202931be1fc2a0e57ad1cb26931b80055b9df65.tar.gz
dokka-c202931be1fc2a0e57ad1cb26931b80055b9df65.tar.bz2
dokka-c202931be1fc2a0e57ad1cb26931b80055b9df65.zip
Update kotlin-compiler to 1.1.51
Diffstat (limited to 'core/src/main/kotlin/Kotlin')
-rw-r--r--core/src/main/kotlin/Kotlin/DocumentationBuilder.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
index 707831ae..fddf0814 100644
--- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
+++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
@@ -755,11 +755,10 @@ class DocumentationBuilder
return null
}
val node = DocumentationNode(annotationClass.name.asString(), Content.Empty, NodeKind.Annotation)
- val arguments = allValueArguments.toList().sortedBy { it.first.index }
- arguments.forEach {
- val valueNode = it.second.toDocumentationNode()
+ allValueArguments.forEach { (name, value) ->
+ val valueNode = value.toDocumentationNode()
if (valueNode != null) {
- val paramNode = DocumentationNode(it.first.name.asString(), Content.Empty, NodeKind.Parameter)
+ val paramNode = DocumentationNode(name.asString(), Content.Empty, NodeKind.Parameter)
paramNode.append(valueNode, RefKind.Detail)
node.append(paramNode, RefKind.Detail)
}