aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-07-09 14:03:16 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-10 15:57:55 +0200
commit6b446b6bae2ac8a33be613c7fc4d34506607f63a (patch)
tree8496f2c1538b246ece165acdf0ba66a22974bedd /plugins/base/src/main/kotlin
parent9a3600e7e8a2aa13a046547c24926b107dc63dd1 (diff)
downloaddokka-6b446b6bae2ac8a33be613c7fc4d34506607f63a.tar.gz
dokka-6b446b6bae2ac8a33be613c7fc4d34506607f63a.tar.bz2
dokka-6b446b6bae2ac8a33be613c7fc4d34506607f63a.zip
Minor style fixes for gfm signatures
Diffstat (limited to 'plugins/base/src/main/kotlin')
-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