aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt b/plugins/base/src/main/kotlin/renderers/DefaultRenderer.kt
index ebfcf864..75fbb187 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<SerializedInstanceWithSource, List<InstanceWithSource>> =
+ ): Map<SerializedBeforeAndAfter, List<InstanceWithSource>> =
children.flatMap { instance ->
instance.sourceSets.map { sourceSet ->
Pair(instance, sourceSet) to Pair(
@@ -184,12 +184,12 @@ abstract class DefaultRenderer<T>(
)
}
}.groupBy(
- Pair<Pair<ContentDivergentInstance, DokkaSourceSet>, Pair<String, String>>::second,
- Pair<Pair<ContentDivergentInstance, DokkaSourceSet>, Pair<String, String>>::first
+ Pair<InstanceWithSource, SerializedBeforeAndAfter>::second,
+ Pair<InstanceWithSource, SerializedBeforeAndAfter>::first
)
}
-internal typealias SerializedInstanceWithSource = Pair<String, String>
+internal typealias SerializedBeforeAndAfter = Pair<String, String>
internal typealias InstanceWithSource = Pair<ContentDivergentInstance, DokkaSourceSet>
fun ContentPage.sourceSets() = this.content.sourceSets \ No newline at end of file