diff options
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r-- | core/src/main/kotlin/pages/ContentNodes.kt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt index 46a71bc0..03014530 100644 --- a/core/src/main/kotlin/pages/ContentNodes.kt +++ b/core/src/main/kotlin/pages/ContentNodes.kt @@ -167,7 +167,14 @@ interface Style interface Kind enum class ContentKind : Kind { - Comment, Constructors, Functions, Parameters, Properties, Classlikes, Packages, Symbol, Sample, Main, BriefComment, Empty + 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) + } + } } enum class TextStyle : Style { |