From 9110dbc70e42d10c56d1e080fdaeecd1ea13d84f Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Fri, 13 Mar 2020 14:56:38 +0100 Subject: Fixed data class rendering. Added information about primary constructor and changed its rendering. --- .../main/kotlin/translators/documentables/DefaultPageCreator.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/base/src/main/kotlin/translators/documentables') 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) -- cgit