aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-03-17 09:30:24 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-25 13:19:31 +0100
commitba16f209faaf02e3300f2c04fec6c9e5b9ebc152 (patch)
tree2020e93477be4beacdfadd1917ec75f8b0b66c20 /core/src
parent9110dbc70e42d10c56d1e080fdaeecd1ea13d84f (diff)
downloaddokka-ba16f209faaf02e3300f2c04fec6c9e5b9ebc152.tar.gz
dokka-ba16f209faaf02e3300f2c04fec6c9e5b9ebc152.tar.bz2
dokka-ba16f209faaf02e3300f2c04fec6c9e5b9ebc152.zip
Refactored extension method and signature builder. Added indentation to class signature.
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/model/aditionalExtras.kt6
-rw-r--r--core/src/main/kotlin/pages/ContentNodes.kt2
2 files changed, 4 insertions, 4 deletions
diff --git a/core/src/main/kotlin/model/aditionalExtras.kt b/core/src/main/kotlin/model/aditionalExtras.kt
index 75f5f69a..853edd64 100644
--- a/core/src/main/kotlin/model/aditionalExtras.kt
+++ b/core/src/main/kotlin/model/aditionalExtras.kt
@@ -37,8 +37,8 @@ class Annotations(val content: List<Annotation>) : ExtraProperty<Documentable> {
}
}
-object PrimaryConstructorExtra: ExtraProperty<Documentable> {
- object PrimaryConstructorExtraKey: ExtraProperty.Key<Documentable, PrimaryConstructorExtra>
+object PrimaryConstructorExtra: ExtraProperty<DFunction> {
+ object PrimaryConstructorExtraKey: ExtraProperty.Key<DFunction, PrimaryConstructorExtra>
- override val key: ExtraProperty.Key<Documentable, *> = PrimaryConstructorExtraKey
+ override val key: ExtraProperty.Key<DFunction, *> = PrimaryConstructorExtraKey
} \ No newline at end of file
diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt
index eeefc3b9..46a71bc0 100644
--- a/core/src/main/kotlin/pages/ContentNodes.kt
+++ b/core/src/main/kotlin/pages/ContentNodes.kt
@@ -171,7 +171,7 @@ enum class ContentKind : Kind {
}
enum class TextStyle : Style {
- Bold, Italic, Strong, Strikethrough, Paragraph, Block, Monospace
+ Bold, Italic, Strong, Strikethrough, Paragraph, Block, Monospace, Indented
}
fun ContentNode.dfs(predicate: (ContentNode) -> Boolean): ContentNode? = if (predicate(this)) {