diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-26 21:34:27 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-26 21:34:27 +0100 |
commit | 4494fd064900fc9ddd9766eed581980c2e360e96 (patch) | |
tree | 7f953cc7b8d7d99bb7d64de495303d31b2ec39eb /src/Kotlin | |
parent | 4b61be354510cf88fed33860c987bd210502e91d (diff) | |
download | dokka-4494fd064900fc9ddd9766eed581980c2e360e96.tar.gz dokka-4494fd064900fc9ddd9766eed581980c2e360e96.tar.bz2 dokka-4494fd064900fc9ddd9766eed581980c2e360e96.zip |
allow applying different styles to different kinds of identifiers
Diffstat (limited to 'src/Kotlin')
-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 fd31988d..439ef174 100644 --- a/src/Kotlin/KotlinLanguageService.kt +++ b/src/Kotlin/KotlinLanguageService.kt @@ -106,7 +106,7 @@ class KotlinLanguageService : LanguageService { return } renderSingleModifier(node) - renderLinked(node) { identifier(it.name) } + renderLinked(node) { identifier(it.name, IdentifierKind.TypeName) } if (typeArguments.any()) { symbol("<") renderList(typeArguments, noWrap = true) { @@ -152,7 +152,7 @@ class KotlinLanguageService : LanguageService { private fun ContentBlock.renderParameter(node: DocumentationNode) { renderAnnotationsForNode(node) - identifier(node.name) + identifier(node.name, IdentifierKind.ParameterName) symbol(":") nbsp() val parameterType = node.detail(DocumentationNode.Kind.Type) @@ -208,7 +208,7 @@ class KotlinLanguageService : LanguageService { } private fun ContentBlock.renderAnnotation(node: DocumentationNode) { - identifier(node.name) + identifier(node.name, IdentifierKind.AnnotationName) val parameters = node.details(DocumentationNode.Kind.Parameter) if (!parameters.isEmpty()) { symbol("(") |