diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Kotlin/KotlinLanguageService.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt index 439ef174..4b43fb88 100644 --- a/src/Kotlin/KotlinLanguageService.kt +++ b/src/Kotlin/KotlinLanguageService.kt @@ -173,7 +173,7 @@ class KotlinLanguageService : LanguageService { renderList(typeParameters) { renderTypeParameter(it) } - symbol("> ") + symbol(">") } } @@ -248,6 +248,9 @@ class KotlinLanguageService : LanguageService { else -> throw IllegalArgumentException("Node $node is not a function-like object") } renderTypeParametersForNode(node) + if (node.details(DocumentationNode.Kind.TypeParameter).any()) { + text(" ") + } val receiver = node.details(DocumentationNode.Kind.Receiver).singleOrNull() if (receiver != null) { renderType(receiver.detail(DocumentationNode.Kind.Type)) |