diff options
author | Filip Zybała <fzybala@virtuslab.com> | 2020-03-17 09:30:24 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-03-25 13:19:31 +0100 |
commit | ba16f209faaf02e3300f2c04fec6c9e5b9ebc152 (patch) | |
tree | 2020e93477be4beacdfadd1917ec75f8b0b66c20 /core/src | |
parent | 9110dbc70e42d10c56d1e080fdaeecd1ea13d84f (diff) | |
download | dokka-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.kt | 6 | ||||
-rw-r--r-- | core/src/main/kotlin/pages/ContentNodes.kt | 2 |
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)) { |