diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-17 12:32:17 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-17 12:32:17 +0100 |
commit | 2822a3eee07a27495d5af4fc36304d483756d3a6 (patch) | |
tree | 77b1023320f74dcc004b5f2c8b2e210b669aeebd /src/Kotlin/KotlinLanguageService.kt | |
parent | c28923c56bb0c9d5271ceadfafe42e562862acac (diff) | |
download | dokka-2822a3eee07a27495d5af4fc36304d483756d3a6.tar.gz dokka-2822a3eee07a27495d5af4fc36304d483756d3a6.tar.bz2 dokka-2822a3eee07a27495d5af4fc36304d483756d3a6.zip |
updated according to language change: class object -> default object
Diffstat (limited to 'src/Kotlin/KotlinLanguageService.kt')
-rw-r--r-- | src/Kotlin/KotlinLanguageService.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt index 526582e6..56baad58 100644 --- a/src/Kotlin/KotlinLanguageService.kt +++ b/src/Kotlin/KotlinLanguageService.kt @@ -26,10 +26,10 @@ class KotlinLanguageService : LanguageService { DocumentationNode.Kind.Modifier -> renderModifier(node) DocumentationNode.Kind.Constructor, DocumentationNode.Kind.Function, - DocumentationNode.Kind.ClassObjectFunction, + DocumentationNode.Kind.DefaultObjectFunction, DocumentationNode.Kind.PropertyAccessor -> renderFunction(node) DocumentationNode.Kind.Property, - DocumentationNode.Kind.ClassObjectProperty -> renderProperty(node) + DocumentationNode.Kind.DefaultObjectProperty -> renderProperty(node) else -> identifier(node.name) } } @@ -215,7 +215,7 @@ class KotlinLanguageService : LanguageService { when (node.kind) { DocumentationNode.Kind.Constructor -> identifier(node.owner!!.name) DocumentationNode.Kind.Function, - DocumentationNode.Kind.ClassObjectFunction -> keyword("fun ") + DocumentationNode.Kind.DefaultObjectFunction -> keyword("fun ") DocumentationNode.Kind.PropertyAccessor -> {} else -> throw IllegalArgumentException("Node $node is not a function-like object") } @@ -251,7 +251,7 @@ class KotlinLanguageService : LanguageService { renderAnnotationsForNode(node) when (node.kind) { DocumentationNode.Kind.Property, - DocumentationNode.Kind.ClassObjectProperty -> keyword("${node.getPropertyKeyword()} ") + DocumentationNode.Kind.DefaultObjectProperty -> keyword("${node.getPropertyKeyword()} ") else -> throw IllegalArgumentException("Node $node is not a property") } renderTypeParametersForNode(node) |