aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-03-31 15:56:31 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-31 16:02:09 +0200
commit30925c0b1ee9c7ca50dd2fc62890dd6ff9a28800 (patch)
treefadb3531db1a6b889e6e72d46d429fe1bb433120 /core/src/main
parentcb98d78d716a0d3e5e783baa147a8929d4c73ce4 (diff)
downloaddokka-30925c0b1ee9c7ca50dd2fc62890dd6ff9a28800.tar.gz
dokka-30925c0b1ee9c7ca50dd2fc62890dd6ff9a28800.tar.bz2
dokka-30925c0b1ee9c7ca50dd2fc62890dd6ff9a28800.zip
Make parameters no longer platform tagged
as they are part of platform hinted description
Diffstat (limited to 'core/src/main')
-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
}
}