aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/documentables
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-03-13 14:56:38 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-25 13:19:31 +0100
commit9110dbc70e42d10c56d1e080fdaeecd1ea13d84f (patch)
tree0ca30e4d8875c50560048ea1136d9aafc44837f8 /plugins/base/src/main/kotlin/translators/documentables
parent3f8fef0f65fe96fb2a3b1dc2280a16b175fbb6c9 (diff)
downloaddokka-9110dbc70e42d10c56d1e080fdaeecd1ea13d84f.tar.gz
dokka-9110dbc70e42d10c56d1e080fdaeecd1ea13d84f.tar.bz2
dokka-9110dbc70e42d10c56d1e080fdaeecd1ea13d84f.zip
Fixed data class rendering. Added information about primary constructor and changed its rendering.
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/documentables')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt8
1 files changed, 7 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 eba56625..464c7bf4 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -105,7 +105,13 @@ open class DefaultPageCreator(
+contentForComments(c) { it !is Property }
if (c is WithConstructors) {
- block("Constructors", 2, ContentKind.Constructors, c.constructors, c.platformData.toSet()) {
+ block(
+ "Constructors",
+ 2,
+ ContentKind.Constructors,
+ c.constructors.filter { it.extra[PrimaryConstructorExtra.PrimaryConstructorExtraKey] == null },
+ c.platformData.toSet()
+ ) {
link(it.name, it.dri)
group {
+buildSignature(it)