aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-05-13 16:20:44 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-05-14 11:33:06 +0200
commita440f0cb8756019131a2c15389e747aea3c585e7 (patch)
tree1c2e2b25464d540b8ce68fe8f14cd105c5268b27 /core/src/main/kotlin/pages
parentd6bfd213a2f363f0581bdc85a68e11c170c93071 (diff)
downloaddokka-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.kt6
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)) {