From efed96e969d8f5afe21197805851aca65ceb643a Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Fri, 5 Aug 2022 13:25:55 +0200 Subject: Add a distinct divider between function/property overloads (#2585) --- .../transformers/pages/merger/SameMethodNamePageMergerStrategy.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/base/src/main/kotlin/transformers/pages') diff --git a/plugins/base/src/main/kotlin/transformers/pages/merger/SameMethodNamePageMergerStrategy.kt b/plugins/base/src/main/kotlin/transformers/pages/merger/SameMethodNamePageMergerStrategy.kt index 6c12c719..003d68cf 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/merger/SameMethodNamePageMergerStrategy.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/merger/SameMethodNamePageMergerStrategy.kt @@ -6,6 +6,10 @@ import org.jetbrains.dokka.model.dfs import org.jetbrains.dokka.pages.* import org.jetbrains.dokka.utilities.DokkaLogger +/** + * Merges [MemberPage] elements that have the same name. + * That includes **both** properties and functions. + */ class SameMethodNamePageMergerStrategy(val logger: DokkaLogger) : PageMergerStrategy { override fun tryMerge(pages: List, path: List): List { val members = pages.filterIsInstance().takeIf { it.isNotEmpty() } ?: return pages -- cgit