aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-07-10 18:52:54 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-13 10:14:16 +0200
commitec318a2ac97aa5ab88564dc36474131fc03cba61 (patch)
tree599aa509e8c82f406bc95e4e843b259acf891585 /plugins/base/src/main/kotlin
parent43957996a2c530d7c22e00d841af9ad349cbf70a (diff)
downloaddokka-ec318a2ac97aa5ab88564dc36474131fc03cba61.tar.gz
dokka-ec318a2ac97aa5ab88564dc36474131fc03cba61.tar.bz2
dokka-ec318a2ac97aa5ab88564dc36474131fc03cba61.zip
Render explicitly documented primary constructors
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index 19df2515..40283d82 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -197,7 +197,7 @@ open class DefaultPageCreator(
"Constructors",
2,
ContentKind.Constructors,
- c.constructors.filter { it.extra[PrimaryConstructorExtra] == null },
+ c.constructors.filter { it.extra[PrimaryConstructorExtra] == null || it.documentation.isNotEmpty() },
c.sourceSets,
extra = PropertyContainer.empty<ContentNode>() + SimpleAttr.header("Constructors")
) {