From 30925c0b1ee9c7ca50dd2fc62890dd6ff9a28800 Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Tue, 31 Mar 2020 15:56:31 +0200 Subject: Make parameters no longer platform tagged as they are part of platform hinted description --- core/src/main/kotlin/pages/ContentNodes.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'core/src/main/kotlin') diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt index 03014530..c1792759 100644 --- a/core/src/main/kotlin/pages/ContentNodes.kt +++ b/core/src/main/kotlin/pages/ContentNodes.kt @@ -170,10 +170,9 @@ enum class ContentKind : Kind { Comment, Constructors, Functions, Parameters, Properties, Classlikes, Packages, Symbol, Sample, Main, BriefComment, Empty; companion object{ - fun shouldBePlatformTagged(kind: Kind) : Boolean { - val platformTagged = listOf(Constructors, Functions, Parameters, Properties, Classlikes, Packages) - return platformTagged.contains(kind) - } + private val platformTagged = setOf(Constructors, Functions, Properties, Classlikes, Packages) + + fun shouldBePlatformTagged(kind: Kind) : Boolean = kind in platformTagged } } -- cgit