From 2274d9261a59570cc3a1a26c3f7ddc167678fe8b Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Fri, 18 Sep 2020 15:53:37 +0200 Subject: Add default values for primitive proprties. Add presenting in signature default values --- plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/base/src/main/kotlin/signatures') 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()) { -- cgit