diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-05-13 16:20:44 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-05-14 11:33:06 +0200 |
commit | a440f0cb8756019131a2c15389e747aea3c585e7 (patch) | |
tree | 1c2e2b25464d540b8ce68fe8f14cd105c5268b27 /core/src/main/kotlin/pages | |
parent | d6bfd213a2f363f0581bdc85a68e11c170c93071 (diff) | |
download | dokka-a440f0cb8756019131a2c15389e747aea3c585e7.tar.gz dokka-a440f0cb8756019131a2c15389e747aea3c585e7.tar.bz2 dokka-a440f0cb8756019131a2c15389e747aea3c585e7.zip |
Platform dependant comments
Diffstat (limited to 'core/src/main/kotlin/pages')
-rw-r--r-- | core/src/main/kotlin/pages/ContentNodes.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt index 4127796c..26bcdf77 100644 --- a/core/src/main/kotlin/pages/ContentNodes.kt +++ b/core/src/main/kotlin/pages/ContentNodes.kt @@ -171,7 +171,7 @@ interface Kind enum class ContentKind : Kind { Comment, Constructors, Functions, Parameters, Properties, Classlikes, Packages, Symbol, Sample, Main, BriefComment, - Empty, Source, TypeAliases, Cover, Inheritors; + Empty, Source, TypeAliases, Cover, Inheritors, PlatformDependantHint; companion object { private val platformTagged = @@ -185,6 +185,10 @@ enum class TextStyle : Style { Bold, Italic, Strong, Strikethrough, Paragraph, Block, Monospace, Indented } +enum class ContentStyle : Style { + KeyValue +} + object CommentTable: Style fun ContentNode.dfs(predicate: (ContentNode) -> Boolean): ContentNode? = if (predicate(this)) { |