diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-06-23 13:37:58 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-06-24 10:47:42 +0200 |
commit | ded608b8e0c1fcde7b7e3c5089af49b379b7bab3 (patch) | |
tree | 470cd892fbb39667eb22b0ca208aa1ce4aef0629 /plugins/base/src/main | |
parent | b7c4beec1b6317b1ceaf2520464996e9ee0e93e5 (diff) | |
download | dokka-ded608b8e0c1fcde7b7e3c5089af49b379b7bab3.tar.gz dokka-ded608b8e0c1fcde7b7e3c5089af49b379b7bab3.tar.bz2 dokka-ded608b8e0c1fcde7b7e3c5089af49b379b7bab3.zip |
Fix tests
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r-- | plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt | 8 |
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) { |