aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Model
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-29 15:28:39 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-29 15:28:39 +0300
commitf3dd7eb1d36913920e431c88a633cf5c5e098820 (patch)
treeef86ef39b956ba5bb82bc40cbf81190ff6522284 /core/src/main/kotlin/Model
parent5ab32ba0dd61585459bb32bb31fe7b19493c980e (diff)
downloaddokka-f3dd7eb1d36913920e431c88a633cf5c5e098820.tar.gz
dokka-f3dd7eb1d36913920e431c88a633cf5c5e098820.tar.bz2
dokka-f3dd7eb1d36913920e431c88a633cf5c5e098820.zip
Post-review fixes, removed code duplication, fixed @throws support
Diffstat (limited to 'core/src/main/kotlin/Model')
-rw-r--r--core/src/main/kotlin/Model/Content.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Model/Content.kt b/core/src/main/kotlin/Model/Content.kt
index 7464d510..1a8bc5d2 100644
--- a/core/src/main/kotlin/Model/Content.kt
+++ b/core/src/main/kotlin/Model/Content.kt
@@ -132,6 +132,7 @@ object ContentTags {
val Description = "Description"
val SeeAlso = "See Also"
val Return = "Return"
+ val Exceptions = "Exceptions"
}
fun content(body: ContentBlock.() -> Unit): ContentBlock {
@@ -237,6 +238,6 @@ open class MutableContent() : Content() {
fun javadocSectionDisplayName(sectionName: String?): String? =
when(sectionName) {
"param" -> "Parameters"
- "throws", "exception" -> "Exceptions"
+ "throws", "exception" -> ContentTags.Exceptions
else -> sectionName?.capitalize()
}