From 4346d4f45bff017df0135dc3c914db74c8795041 Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Mon, 8 Jun 2020 08:41:17 +0200 Subject: Fix rendering of functions without parameters --- plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/base/src/main/kotlin/signatures') 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) -- cgit