aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt8
1 files changed, 6 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 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<DFunction>
+ 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) {