aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-06-08 08:41:17 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-06-09 13:20:31 +0200
commit4346d4f45bff017df0135dc3c914db74c8795041 (patch)
treed11167985b56ea71a20992a1fdca832ef9590bd9 /plugins/base/src/main/kotlin
parent23e0d26139a09c7e2e157d1e0099ceab58d9bb48 (diff)
downloaddokka-4346d4f45bff017df0135dc3c914db74c8795041.tar.gz
dokka-4346d4f45bff017df0135dc3c914db74c8795041.tar.bz2
dokka-4346d4f45bff017df0135dc3c914db74c8795041.zip
Fix rendering of functions without parameters
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
index c05dab3c..4868d91e 100644
--- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
+++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
@@ -171,13 +171,15 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog
text(".")
}
link(f.name, f.dri)
- list(f.parameters, "(", ")") {
+ text("(")
+ list(f.parameters) {
annotationsInline(it)
text(it.modifiers().toSignatureString())
text(it.name!!)
text(": ")
signatureForProjection(it.type)
}
+ text(")")
if (f.documentReturnType()) {
text(": ")
signatureForProjection(f.type)