aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-12 17:49:34 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-12 17:49:34 +0100
commitd33f5b8d4268e3b3ea318faeb4b5c63a0b7b71fd (patch)
treec63e79396c524f9457fac87d4b4a5abf6b6d05d3 /src/Kotlin
parent370b3913e2c629073af91bf9f63be917de2cc6d1 (diff)
downloaddokka-d33f5b8d4268e3b3ea318faeb4b5c63a0b7b71fd.tar.gz
dokka-d33f5b8d4268e3b3ea318faeb4b5c63a0b7b71fd.tar.bz2
dokka-d33f5b8d4268e3b3ea318faeb4b5c63a0b7b71fd.zip
don't show constructors for enum entries
Diffstat (limited to 'src/Kotlin')
-rw-r--r--src/Kotlin/DocumentationBuilder.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt
index 8b6b19d3..b155ebca 100644
--- a/src/Kotlin/DocumentationBuilder.kt
+++ b/src/Kotlin/DocumentationBuilder.kt
@@ -210,7 +210,7 @@ class DocumentationBuilder(val session: ResolveSession, val options: Documentati
}
val node = DocumentationNode(this, kind)
node.appendSupertypes(this)
- if (getKind() != ClassKind.OBJECT) {
+ if (getKind() != ClassKind.OBJECT && getKind() != ClassKind.ENUM_ENTRY) {
node.appendChildren(getTypeConstructor().getParameters(), DocumentationReference.Kind.Detail)
node.appendChildren(getConstructors(), DocumentationReference.Kind.Member)
}