diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-03 20:21:52 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-03 20:21:52 +0100 |
commit | fb25c1eaf41ae314d19d6cda55446a2ab6b63715 (patch) | |
tree | 99cb6e86eb45a7ea4a3f0eeb2f35f200c3117270 /src/Formats | |
parent | aa9395aa97a9d738125e21d5ed235b350d637a24 (diff) | |
download | dokka-fb25c1eaf41ae314d19d6cda55446a2ab6b63715.tar.gz dokka-fb25c1eaf41ae314d19d6cda55446a2ab6b63715.tar.bz2 dokka-fb25c1eaf41ae314d19d6cda55446a2ab6b63715.zip |
reduce the number of Kotlinisms in documentation model generated from Java code
Diffstat (limited to 'src/Formats')
-rw-r--r-- | src/Formats/StructuredFormatService.kt | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index 41ffc61d..6bc28522 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -308,14 +308,7 @@ abstract class StructuredFormatService(locationService: LocationService, } appendSection(location, "Packages", node.members(DocumentationNode.Kind.Package), node, to) - appendSection(location, "Types", node.members.filter { - it.kind in setOf( - DocumentationNode.Kind.Class, - DocumentationNode.Kind.Interface, - DocumentationNode.Kind.Enum, - DocumentationNode.Kind.Object, - DocumentationNode.Kind.AnnotationClass) - }, node, to) + appendSection(location, "Types", node.members.filter { it.kind in DocumentationNode.Kind.classLike }, node, to) appendSection(location, "Extensions for External Classes", node.members(DocumentationNode.Kind.ExternalClass), node, to) appendSection(location, "Enum Values", node.members(DocumentationNode.Kind.EnumItem), node, to) appendSection(location, "Constructors", node.members(DocumentationNode.Kind.Constructor), node, to) |