aboutsummaryrefslogtreecommitdiff
path: root/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2020-06-25 20:41:28 +0200
committerPaweł Marks <pmarks@virtuslab.com>2020-06-26 00:40:47 +0200
commit0e35a9d3b2a24b50d6016e82e9889d9fdc3dbbf0 (patch)
treeb0ce1d6307aeb8fc4d6117d5421aa4c17bbe66a4 /plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
parenta1c316e829827ddb0e3e288e684ac287e8fd28ff (diff)
downloaddokka-0e35a9d3b2a24b50d6016e82e9889d9fdc3dbbf0.tar.gz
dokka-0e35a9d3b2a24b50d6016e82e9889d9fdc3dbbf0.tar.bz2
dokka-0e35a9d3b2a24b50d6016e82e9889d9fdc3dbbf0.zip
Adding external url handling
Diffstat (limited to 'plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt')
-rw-r--r--plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt24
1 files changed, 14 insertions, 10 deletions
diff --git a/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt b/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
index c6fcb9b0..ca817219 100644
--- a/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
+++ b/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt
@@ -117,16 +117,20 @@ class JavaSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLogge
val returnType = f.type
signatureForProjection(returnType)
text(nbsp.toString())
- link(f.name, f.dri)
- list(f.generics, prefix = "<", suffix = ">") {
- +buildSignature(it)
- }
- list(f.parameters, "(", ")") {
- annotationsInline(it)
- text(it.modifiers()[it]?.toSignatureString() ?: "")
- signatureForProjection(it.type)
- text(nbsp.toString())
- link(it.name!!, it.dri)
+ group {
+ link(f.name, f.dri)
+ list(f.generics, prefix = "<", suffix = ">") {
+ +buildSignature(it)
+ }
+ text("(")
+ list(f.parameters) {
+ annotationsInline(it)
+ text(it.modifiers()[it]?.toSignatureString() ?: "")
+ signatureForProjection(it.type)
+ text(nbsp.toString())
+ link(it.name!!, it.dri)
+ }
+ text(")")
}
}