From ded608b8e0c1fcde7b7e3c5089af49b379b7bab3 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Tue, 23 Jun 2020 13:37:58 +0200 Subject: Fix tests --- .../main/kotlin/translators/documentables/DefaultPageCreator.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins/base/src/main/kotlin') diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt index fb8cbf9e..a6dd337a 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt @@ -61,8 +61,12 @@ open class DefaultPageCreator( open fun pageForTypeAlias(t: DTypeAlias) = MemberPageNode(t.name, contentForTypeAlias(t), setOf(t.dri), t) - private val WithScope.filteredFunctions - get() = functions.filter { it.extra[InheritedFunction]?.isInherited != true } + private val WithScope.filteredFunctions: List + get() = functions.flatMap { dFunction -> + dFunction.sourceSets.mapNotNull { sourceSetData -> + dFunction.takeIf { it.extra[InheritedFunction]?.isInherited(sourceSetData) != true } + } + } protected open fun contentForModule(m: DModule) = contentBuilder.contentFor(m) { group(kind = ContentKind.Cover) { -- cgit