diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2022-04-27 16:13:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 16:13:13 +0300 |
commit | 2aabdea6113da6cb50edf18afb146b7120071e68 (patch) | |
tree | e4cf90a1d9d41dec29d5950cee4df3f960c0d3cc /plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt | |
parent | a43f710c7802f418f8ca3b41ef8ac726c75987aa (diff) | |
download | dokka-2aabdea6113da6cb50edf18afb146b7120071e68.tar.gz dokka-2aabdea6113da6cb50edf18afb146b7120071e68.tar.bz2 dokka-2aabdea6113da6cb50edf18afb146b7120071e68.zip |
Fix empty parentheses for no-arg enum entry (#2470)
* Fix empty parentheses for no-arg enum entry
Fixes #2355
* Move parentheses punctuation inside `list` call
* Revert formatting
* Correct expected ordering of enum entries in tests
Diffstat (limited to 'plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt index 3c9daa29..612f9ace 100644 --- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt +++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt @@ -80,13 +80,13 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog link(e.name, e.dri, styles = emptySet()) e.extra[ConstructorValues]?.let { constructorValues -> constructorValues.values[it]?.let { values -> - punctuation("(") list( elements = values, + prefix = "(", + suffix = ")", separator = ", ", separatorStyles = mainStyles + TokenStyle.Punctuation, ) { highlightValue(it) } - punctuation(")") } } } |