Skip to content

enum class rendering is inconsistent with source code #3431

@whyoleg

Description

@whyoleg

Describe the bug
On current moment in Dokka we show enum signature as enum EnumName, but in source code we have enum class EnumName.

Expected behaviour
Render enum signature as enum class EnumName

Example
Dokka HTML: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-start/
Source code: https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/common/src/CoroutineStart.kt#L20

For reference, current stdlib documentation shows enum class: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/-annotation-retention/

Installation

  • Dokka version: 1.9.10/1.9.20

Additional context
Enums in Java are declared as enum EnumName - same as how current Dokka renders enums signatures.
Code for signature building located in KotlinSignatureProvider

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions