aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/model/documentableUtils.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/model/documentableUtils.kt')
-rw-r--r--core/src/main/kotlin/model/documentableUtils.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/main/kotlin/model/documentableUtils.kt b/core/src/main/kotlin/model/documentableUtils.kt
index b09260ee..2d4ade15 100644
--- a/core/src/main/kotlin/model/documentableUtils.kt
+++ b/core/src/main/kotlin/model/documentableUtils.kt
@@ -1,12 +1,12 @@
package org.jetbrains.dokka.model
-fun <T> SourceSetDependent<T>.filtered(platformDataList: List<SourceSetData>) = filter { it.key in platformDataList }
-fun SourceSetData?.filtered(platformDataList: List<SourceSetData>) = takeIf { this in platformDataList }
+fun <T> SourceSetDependent<T>.filtered(platformDataList: Set<SourceSetData>) = filter { it.key in platformDataList }
+fun SourceSetData?.filtered(platformDataList: Set<SourceSetData>) = takeIf { this in platformDataList }
-fun DTypeParameter.filter(filteredData: List<SourceSetData>) =
+fun DTypeParameter.filter(filteredData: Set<SourceSetData>) =
if (filteredData.containsAll(sourceSets)) this
else {
- val intersection = filteredData.intersect(sourceSets).toList()
+ val intersection = filteredData.intersect(sourceSets)
if (intersection.isEmpty()) null
else DTypeParameter(
dri,