diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-06-25 15:50:20 +0200 |
---|---|---|
committer | Błażej Kardyś <bkardys@virtuslab.com> | 2020-06-25 16:03:56 +0200 |
commit | e86d98a8bff36795da88f53472cb995bcbb50f19 (patch) | |
tree | a6da3777b018e16732e595fcd7ad452f2883589d /plugins/base/src/main/kotlin/translators/documentables | |
parent | 973d63bc2d4f5ac912e7c78f019c6689b3acbdc3 (diff) | |
download | dokka-e86d98a8bff36795da88f53472cb995bcbb50f19.tar.gz dokka-e86d98a8bff36795da88f53472cb995bcbb50f19.tar.bz2 dokka-e86d98a8bff36795da88f53472cb995bcbb50f19.zip |
Fix double typealias rendering
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/documentables')
-rw-r--r-- | plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt index ecc7cf1a..3fa950ed 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt @@ -409,6 +409,8 @@ open class DefaultPageCreator( table(kind, extra = extra) { collection .groupBy { it.name } + // This hacks displaying actual typealias signatures along classlike ones + .mapValues { if (it.value.any { it is DClasslike }) it.value.filter { it !is DTypeAlias } else it.value } .toSortedMap(compareBy(nullsLast(String.CASE_INSENSITIVE_ORDER)){it}) .map { (elementName, elements) -> // This groupBy should probably use LocationProvider buildGroup(elements.map { it.dri }.toSet(), elements.flatMap { it.sourceSets }.toSet(), kind = kind) { |