aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-04-29 12:04:58 +0300
committerGitHub <noreply@github.com>2022-04-29 12:04:58 +0300
commit84aacad29982240ae367b21e9d283d38dab672ae (patch)
tree7241d83af629ccc16a6bb0d8adeaf922813156e0 /plugins/base/src/main
parent4451b8e546584da389da60f73b56ce25d6ac2eaa (diff)
downloaddokka-84aacad29982240ae367b21e9d283d38dab672ae.tar.gz
dokka-84aacad29982240ae367b21e9d283d38dab672ae.tar.bz2
dokka-84aacad29982240ae367b21e9d283d38dab672ae.zip
Fix arg name inside functional type (#2478)
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
index 42ae1c27..ba4b4131 100644
--- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
+++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
@@ -387,13 +387,14 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog
) {
return when (p) {
is TypeParameter -> {
+ if (p.presentableName != null) {
+ text(p.presentableName!!)
+ operator(": ")
+ }
annotationsInline(p)
link(p.name, p.dri)
}
- is FunctionalTypeConstructor -> {
- annotationsInline(p)
- +funType(mainDRI.single(), mainSourcesetData, p)
- }
+ is FunctionalTypeConstructor -> +funType(mainDRI.single(), mainSourcesetData, p)
is GenericTypeConstructor ->
group(styles = emptySet()) {
val linkText = if (showFullyQualifiedName && p.dri.packageName != null) {
@@ -443,6 +444,7 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog
text(type.presentableName!!)
operator(": ")
}
+ annotationsInline(type)
if (type.isSuspendable) keyword("suspend ")
if (type.isExtensionFunction) {