aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-07-16 12:34:27 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-16 15:53:58 +0200
commit47a145f68b716bf06630fbfc0c191d72062d2937 (patch)
tree6a1d3c97a22943859fcf963628d99734f20e3034 /plugins/base/src/main/kotlin
parent04cf1cdd3a909fa62e5ffda5b7d04695c749177e (diff)
downloaddokka-47a145f68b716bf06630fbfc0c191d72062d2937.tar.gz
dokka-47a145f68b716bf06630fbfc0c191d72062d2937.tar.bz2
dokka-47a145f68b716bf06630fbfc0c191d72062d2937.zip
Fix signature duplication when filtering inherited functions
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index 5180d4fc..02f4b54e 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -62,9 +62,9 @@ open class DefaultPageCreator(
open fun pageForTypeAlias(t: DTypeAlias) = MemberPageNode(t.name, contentForTypeAlias(t), setOf(t.dri), t)
private val WithScope.filteredFunctions: List<DFunction>
- get() = functions.flatMap { dFunction ->
- dFunction.sourceSets.mapNotNull { sourceSetData ->
- dFunction.takeIf { it.extra[InheritedFunction]?.isInherited(sourceSetData) != true }
+ get() = functions.mapNotNull { function ->
+ function.takeIf {
+ it.sourceSets.any { sourceSet -> it.extra[InheritedFunction]?.isInherited(sourceSet) != true }
}
}