diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-06-08 11:34:15 +0200 |
---|---|---|
committer | Paweł Marks <pmarks@virtuslab.com> | 2020-06-12 14:15:24 +0200 |
commit | cf5b1aff6e7bb51414f80ff71f8d2feeb9e5fb9f (patch) | |
tree | 9aa73a2fc61894638ebb5e594de8243ef19c6eac /plugins/base/src/main/kotlin | |
parent | 3ca8ca75c60892de68f4fe18335aa79f4622c93c (diff) | |
download | dokka-cf5b1aff6e7bb51414f80ff71f8d2feeb9e5fb9f.tar.gz dokka-cf5b1aff6e7bb51414f80ff71f8d2feeb9e5fb9f.tar.bz2 dokka-cf5b1aff6e7bb51414f80ff71f8d2feeb9e5fb9f.zip |
Fix after rebase
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r-- | plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt index 04818ebb..a444d192 100644 --- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt +++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt @@ -94,26 +94,24 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog +buildSignature(it) } } - if (c is DClass) { - if (c is WithConstructors) { - val pConstructor = c.constructors.singleOrNull { it.extra[PrimaryConstructorExtra] != null } - if (pConstructor?.annotations()?.isNotEmpty() == true) { - text(nbsp.toString()) - annotationsInline(pConstructor) - text("constructor") - } - list( - pConstructor?.parameters.orEmpty(), - "(", - ")", - ",", - pConstructor?.sourceSets.orEmpty().toSet() - ) { - annotationsInline(it) - text(it.name ?: "", styles = mainStyles.plus(TextStyle.Bold)) - text(": ") - signatureForProjection(it.type) - } + if (c is WithConstructors) { + val pConstructor = c.constructors.singleOrNull { it.extra[PrimaryConstructorExtra] != null } + if (pConstructor?.annotations()?.values?.any { it.isNotEmpty() } == true) { + text(nbsp.toString()) + annotationsInline(pConstructor) + text("constructor") + } + list( + pConstructor?.parameters.orEmpty(), + "(", + ")", + ",", + pConstructor?.sourceSets.orEmpty().toSet() + ) { + annotationsInline(it) + text(it.name ?: "", styles = mainStyles.plus(TextStyle.Bold)) + text(": ") + signatureForProjection(it.type) } } if (c is WithSupertypes) { |