aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-07-07 13:47:10 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-08 11:48:29 +0200
commita97ae720815e462c2e941d84c6273d8ecc138e6b (patch)
tree60f42ffe8db1e42ed7bfb2941c5919bb8a90262b /plugins/base
parent8150d8478018ab36ae2bab0447bbd3322a895e36 (diff)
downloaddokka-a97ae720815e462c2e941d84c6273d8ecc138e6b.tar.gz
dokka-a97ae720815e462c2e941d84c6273d8ecc138e6b.tar.bz2
dokka-a97ae720815e462c2e941d84c6273d8ecc138e6b.zip
Fix tests after rebase
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt b/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt
index 57a3d8d1..ebfcf864 100644
--- a/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt
@@ -175,7 +175,7 @@ abstract class DefaultRenderer<T>(
pageContext: ContentPage,
beforeTransformer: (ContentDivergentInstance, ContentPage, DokkaSourceSet) -> String,
afterTransformer: (ContentDivergentInstance, ContentPage, DokkaSourceSet) -> String
- ): Map<Pair<String, String>, List<Pair<ContentDivergentInstance, DokkaSourceSet>>> =
+ ): Map<SerializedInstanceWithSource, List<InstanceWithSource>> =
children.flatMap { instance ->
instance.sourceSets.map { sourceSet ->
Pair(instance, sourceSet) to Pair(
@@ -189,4 +189,7 @@ abstract class DefaultRenderer<T>(
)
}
+internal typealias SerializedInstanceWithSource = Pair<String, String>
+internal typealias InstanceWithSource = Pair<ContentDivergentInstance, DokkaSourceSet>
+
fun ContentPage.sourceSets() = this.content.sourceSets \ No newline at end of file