aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-03-19 16:04:55 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-26 12:36:03 +0100
commit8ef04b5d6bb46a5fbd9cea9b8d08048bc9f03879 (patch)
tree4ff4eb6bdb9404e8e64808f8de33a197831e0fda /core/src/main/kotlin
parent3aab04fa61e38acec0029553fb0704d65cd11465 (diff)
downloaddokka-8ef04b5d6bb46a5fbd9cea9b8d08048bc9f03879.tar.gz
dokka-8ef04b5d6bb46a5fbd9cea9b8d08048bc9f03879.tar.bz2
dokka-8ef04b5d6bb46a5fbd9cea9b8d08048bc9f03879.zip
Fixed expected-actual merging. Refactored contentForComments.
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/model/Documentable.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt
index 6b41b51e..6215be18 100644
--- a/core/src/main/kotlin/model/Documentable.kt
+++ b/core/src/main/kotlin/model/Documentable.kt
@@ -40,6 +40,7 @@ data class PlatformDependent<out T>(
companion object {
fun <T> empty(): PlatformDependent<T> = PlatformDependent(emptyMap())
fun <T> from(platformData: PlatformData, element: T) = PlatformDependent(mapOf(platformData to element))
+ fun <T> expectFrom(element: T) = PlatformDependent(map = emptyMap(), expect = element)
}
}