aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorgzoritchak <g.zoritchak@gmail.com>2020-11-12 15:55:06 +0100
committerKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2020-11-13 11:33:04 +0100
commit63944c825d97afd910d361eee5878c5ac944a063 (patch)
tree221c668e86ac2944408add5da21680c8d0899b88 /plugins/base/src/main/kotlin
parent6a1c05c2d340a6812a8b58d3027d8e5712db45a2 (diff)
downloaddokka-63944c825d97afd910d361eee5878c5ac944a063.tar.gz
dokka-63944c825d97afd910d361eee5878c5ac944a063.tar.bz2
dokka-63944c825d97afd910d361eee5878c5ac944a063.zip
Generate content with the params order of KDoc (#1611)
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index 355eff16..fd64b6be 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -292,9 +292,8 @@ open class DefaultPageCreator(
@Suppress("UNCHECKED_CAST")
private inline fun <reified T : NamedTagWrapper> GroupedTags.withTypeNamed(): Map<String, SourceSetDependent<T>> =
(this[T::class] as List<Pair<DokkaSourceSet, T>>?)
- ?.groupBy { it.second.name }
+ ?.groupByTo(linkedMapOf()) { it.second.name }
?.mapValues { (_, v) -> v.toMap() }
- ?.toSortedMap(String.CASE_INSENSITIVE_ORDER)
.orEmpty()
private inline fun <reified T : TagWrapper> GroupedTags.isNotEmptyForTag(): Boolean =