From 00993eec4ffa5f197b6d2a2c76c30626d9b1c419 Mon Sep 17 00:00:00 2001 From: Szymon Świstun Date: Thu, 27 Feb 2020 16:35:07 +0100 Subject: Remove the duplication of companion objects in the model --- core/src/main/kotlin/model/Documentable.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt index 778d1458..3bc1690b 100644 --- a/core/src/main/kotlin/model/Documentable.kt +++ b/core/src/main/kotlin/model/Documentable.kt @@ -155,7 +155,7 @@ data class Class( WithExtraProperties { override val children: List - get() = (functions + properties + classlikes + listOfNotNull(companion) + constructors) as List + get() = (functions + properties + classlikes + constructors) as List override fun withNewExtras(newExtras: PropertyContainer) = copy(extra = newExtras) } @@ -235,7 +235,7 @@ data class Interface( override val extra: PropertyContainer = PropertyContainer.empty() ) : Classlike(), WithCompanion, WithGenerics, WithSupertypes, WithExtraProperties { override val children: List - get() = (functions + properties + classlikes + listOfNotNull(companion)) as List + get() = (functions + properties + classlikes) as List override fun withNewExtras(newExtras: PropertyContainer) = copy(extra = newExtras) } -- cgit