aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/signatures
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-09-18 15:53:37 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-09-28 16:54:22 +0200
commit2274d9261a59570cc3a1a26c3f7ddc167678fe8b (patch)
treebde5200a8d97b77d07db18a153b107c4b39bad1e /plugins/base/src/main/kotlin/signatures
parent4b4bd919f0ae94190d475c99c3d5fa0140822b84 (diff)
downloaddokka-2274d9261a59570cc3a1a26c3f7ddc167678fe8b.tar.gz
dokka-2274d9261a59570cc3a1a26c3f7ddc167678fe8b.tar.bz2
dokka-2274d9261a59570cc3a1a26c3f7ddc167678fe8b.zip
Add default values for primitive proprties. Add presenting in signature default values
Diffstat (limited to 'plugins/base/src/main/kotlin/signatures')
-rw-r--r--plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
index 324ef303..0a22cece 100644
--- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
+++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
@@ -220,6 +220,9 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog
link(p.name, p.dri)
text(": ")
signatureForProjection(p.type)
+ p.extra[DefaultValue]?.run {
+ text(" = $value")
+ }
}
}
@@ -255,6 +258,9 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog
text(it.name!!)
text(": ")
signatureForProjection(it.type)
+ it.extra[DefaultValue]?.run {
+ text(" = $value")
+ }
}
text(")")
if (f.documentReturnType()) {