aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2023-01-09 15:54:13 +0200
committerGitHub <noreply@github.com>2023-01-09 15:54:13 +0200
commit2161c397e1b1aadcf3d39c8518258e9bdb2b431a (patch)
tree9f4a0d501fe1cd880b7133b3c083e1862b34d44b /plugins/base/src/main/kotlin
parentc3aa879c3c77233c401cf314d736bf20891991ba (diff)
downloaddokka-2161c397e1b1aadcf3d39c8518258e9bdb2b431a.tar.gz
dokka-2161c397e1b1aadcf3d39c8518258e9bdb2b431a.tar.bz2
dokka-2161c397e1b1aadcf3d39c8518258e9bdb2b431a.zip
Deduplicate extensions (#2780)
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index 266d6e94..b8bf87a4 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -300,7 +300,7 @@ open class DefaultPageCreator(
val extensions = (classlikes as List<WithExtraProperties<DClasslike>>).flatMap {
it.extra[CallableExtensions]?.extensions
?.filterIsInstance<Documentable>().orEmpty()
- }
+ }.distinctBy{ it.sourceSets to it.dri} // [Documentable] has expensive equals/hashCode at the moment, see #2620
// Extensions are added to sourceSets since they can be placed outside the sourceSets from classlike
// Example would be an Interface in common and extension function in jvm