diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-27 18:37:35 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-10-29 11:57:20 +0100 |
commit | 8291bee3a86f5f2409ba4ae44c87f291c664ac19 (patch) | |
tree | a0a4558c4c48184ed630dc62d34f8898f7546b44 /src/Kotlin/KotlinLanguageService.kt | |
parent | 3faa3f2d1c7ca33ad8d98bc6c562e4fe6977225f (diff) | |
download | dokka-8291bee3a86f5f2409ba4ae44c87f291c664ac19.tar.gz dokka-8291bee3a86f5f2409ba4ae44c87f291c664ac19.tar.bz2 dokka-8291bee3a86f5f2409ba4ae44c87f291c664ac19.zip |
wrapping and nicer formatting for signatures
Diffstat (limited to 'src/Kotlin/KotlinLanguageService.kt')
-rw-r--r-- | src/Kotlin/KotlinLanguageService.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt index 1e7050ef..0d1d6b85 100644 --- a/src/Kotlin/KotlinLanguageService.kt +++ b/src/Kotlin/KotlinLanguageService.kt @@ -104,9 +104,7 @@ class KotlinLanguageService : LanguageService { private class SummarizingMapper(val kind: ReceiverKind, val typeParameterName: String): SignatureMapper { override fun renderReceiver(receiver: DocumentationNode, to: ContentBlock) { - val newReceiver = ContentEmphasis() - newReceiver.append(ContentIdentifier(kind.receiverName, IdentifierKind.SummarizedTypeName)) - to.append(newReceiver) + to.append(ContentIdentifier(kind.receiverName, IdentifierKind.SummarizedTypeName)) to.text("<$typeParameterName>") } } @@ -340,8 +338,10 @@ class KotlinLanguageService : LanguageService { symbol("(") renderList(node.details(DocumentationNode.Kind.Parameter)) { + indentedSoftLineBreak() renderParameter(it, renderMode) } + softLineBreak() symbol(")") if (needReturnType(node)) { symbol(": ") |