From 4f59034a9436ff23b021a878dba753b67d62b742 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 26 Feb 2015 19:19:55 +0100 Subject: separate sections for extension properties and extension functions --- src/Formats/StructuredFormatService.kt | 3 ++- src/Model/DocumentationNode.kt | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index 70967b20..7535449d 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -285,7 +285,8 @@ public abstract class StructuredFormatService(locationService: LocationService, DocumentationNode.Kind.EnumItem ) }, node, to) - appendSection(location, "Extensions", node.extensions, node, to) + appendSection(location, "Extension Properties", node.extensions.filter { it.kind == DocumentationNode.Kind.Property }, node, to) + appendSection(location, "Extension Functions", node.extensions.filter { it.kind == DocumentationNode.Kind.Function }, node, to) appendSection(location, "Inheritors", node.inheritors.filter { it.kind != DocumentationNode.Kind.EnumItem }, node, to) appendSection(location, "Links", node.links, node, to) diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index 8fec29c4..3fc1198c 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -77,7 +77,6 @@ public open class DocumentationNode(val name: String, Constructor Function Property - PropertyAccessor DefaultObjectProperty DefaultObjectFunction -- cgit