diff options
author | Dmitry Jemerov <intelliyole@gmail.com> | 2015-01-30 19:04:34 +0100 |
---|---|---|
committer | Dmitry Jemerov <intelliyole@gmail.com> | 2015-01-30 19:04:34 +0100 |
commit | b5286f576f470ad1665a7b1acc9ea276bc1a0c18 (patch) | |
tree | 5cf3800e961b9da84b2db03707603865496f5ed0 /src/Model/DocumentationNode.kt | |
parent | b55b258574a01a02f906f5f12646ecacfc640e20 (diff) | |
parent | 0fac1d925b74f24002a4e1538088ce66c4b02cb9 (diff) | |
download | dokka-b5286f576f470ad1665a7b1acc9ea276bc1a0c18.tar.gz dokka-b5286f576f470ad1665a7b1acc9ea276bc1a0c18.tar.bz2 dokka-b5286f576f470ad1665a7b1acc9ea276bc1a0c18.zip |
Merge pull request #24 from orangy/sections-rewrite
Use KDoc PSI instead of custom Markdown extensions to parse KDoc into sections
Diffstat (limited to 'src/Model/DocumentationNode.kt')
-rw-r--r-- | src/Model/DocumentationNode.kt | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index a666b486..c3700069 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -8,15 +8,7 @@ public open class DocumentationNode(val name: String, private val references = LinkedHashSet<DocumentationReference>() - public val summary: ContentNode get() { - val contentSection = content.sections["\$summary"] - if (contentSection != null) - return contentSection - val ownerSection = owner?.content?.sections?.get(name) - if (ownerSection != null) - return ownerSection - return ContentNode.empty - } + public val summary: ContentNode get() = content.summary public val owner: DocumentationNode? get() = references(DocumentationReference.Kind.Owner).singleOrNull()?.to |