diff options
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 2 | ||||
-rw-r--r-- | test/data/format/enumClass.value.md | 12 |
2 files changed, 13 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) } diff --git a/test/data/format/enumClass.value.md b/test/data/format/enumClass.value.md index e69de29b..70dc8eb8 100644 --- a/test/data/format/enumClass.value.md +++ b/test/data/format/enumClass.value.md @@ -0,0 +1,12 @@ +[test](out.md) / [](out.md) / [InlineOption](out.md) / [LOCAL_CONTINUE_AND_BREAK](out.md) + + +# LOCAL_CONTINUE_AND_BREAK + + +``` +LOCAL_CONTINUE_AND_BREAK +``` + + + |