aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-03-24 12:38:22 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-26 12:36:03 +0100
commitfe232a3f41978f83134f486ed55dad49bfcb0caa (patch)
treeafda20effb1be76081ebc482e747c8b6267eb993 /plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
parent8a87b5e0bd2eda12f4e44512e3f8856c72e53b3e (diff)
downloaddokka-fe232a3f41978f83134f486ed55dad49bfcb0caa.tar.gz
dokka-fe232a3f41978f83134f486ed55dad49bfcb0caa.tar.bz2
dokka-fe232a3f41978f83134f486ed55dad49bfcb0caa.zip
Signatures are now platform-hinted. Fixed merger after changing modifier to PlatformDependent.
Diffstat (limited to 'plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt')
-rw-r--r--plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
index d87152d5..f59a41a1 100644
--- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
+++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
@@ -71,7 +71,7 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog
private fun signature(f: DFunction) = contentBuilder.contentFor(f, ContentKind.Symbol, setOf(TextStyle.Monospace)) {
platformText(f.visibility) { (it.takeIf { it !in ignoredVisibilities }?.name ?: "") + " " }
- platformText(f.modifier) { it.name }
+ platformText(f.modifier) { it.name + " " }
text("fun ")
list(f.generics, prefix = "<", suffix = "> ") {
+buildSignature(it)