From fb25c1eaf41ae314d19d6cda55446a2ab6b63715 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 3 Nov 2015 20:21:52 +0100 Subject: reduce the number of Kotlinisms in documentation model generated from Java code --- src/Kotlin/KotlinLanguageService.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/Kotlin') diff --git a/src/Kotlin/KotlinLanguageService.kt b/src/Kotlin/KotlinLanguageService.kt index 3c4b974f..d07f4c09 100644 --- a/src/Kotlin/KotlinLanguageService.kt +++ b/src/Kotlin/KotlinLanguageService.kt @@ -12,11 +12,7 @@ class KotlinLanguageService : LanguageService { return content { when (node.kind) { DocumentationNode.Kind.Package -> if (renderMode == RenderMode.FULL) renderPackage(node) - DocumentationNode.Kind.Class, - DocumentationNode.Kind.Interface, - DocumentationNode.Kind.Enum, - DocumentationNode.Kind.AnnotationClass, - DocumentationNode.Kind.Object -> renderClass(node, renderMode) + in DocumentationNode.Kind.classLike -> renderClass(node, renderMode) DocumentationNode.Kind.EnumItem, DocumentationNode.Kind.ExternalClass -> if (renderMode == RenderMode.FULL) identifier(node.name) -- cgit