aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-26 19:19:55 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-26 19:19:55 +0100
commit4f59034a9436ff23b021a878dba753b67d62b742 (patch)
tree310a11cebec76a4281fd556d3f9d9f469e1f873c
parent146764aca661d51daa298c7cfe6b9b5efcff7e5f (diff)
downloaddokka-4f59034a9436ff23b021a878dba753b67d62b742.tar.gz
dokka-4f59034a9436ff23b021a878dba753b67d62b742.tar.bz2
dokka-4f59034a9436ff23b021a878dba753b67d62b742.zip
separate sections for extension properties and extension functions
-rw-r--r--src/Formats/StructuredFormatService.kt3
-rw-r--r--src/Model/DocumentationNode.kt1
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