aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/pages/ContentNodes.kt7
1 files changed, 3 insertions, 4 deletions
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
}
}