diff options
author | Szymon Świstun <sswistun@virtuslab.com> | 2020-03-02 11:07:47 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-03-17 14:38:44 +0100 |
commit | 128e3fee4182c0957e266accc99b174815486520 (patch) | |
tree | 64cfa0a6e2204ae56ddae726b399ca2da26f2e44 /core/src/main/kotlin | |
parent | 8658fd40e3674e29ef10e1fc4289d26caea1e762 (diff) | |
download | dokka-128e3fee4182c0957e266accc99b174815486520.tar.gz dokka-128e3fee4182c0957e266accc99b174815486520.tar.bz2 dokka-128e3fee4182c0957e266accc99b174815486520.zip |
Add more information to Documentables
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r-- | core/src/main/kotlin/model/Documentable.kt | 5 | ||||
-rw-r--r-- | core/src/main/kotlin/model/properties/properties.kt | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt index 22930bf2..e379adb9 100644 --- a/core/src/main/kotlin/model/Documentable.kt +++ b/core/src/main/kotlin/model/Documentable.kt @@ -343,6 +343,11 @@ enum class ExtraModifiers { OVERRIDE, DATA, CONST, DYNAMIC, EXTERNAL, INNER, LATEINIT, OPERATOR, TAILREC, VARARG } +enum class ExtraModifiers { + STATIC, INLINE, INFIX, SUSPEND, REIFIED, CROSSINLINE, NOINLINE, + OVERRIDE, DATA, CONST, DYNAMIC, EXTERNAL, INNER, LATEINIT, OPERATOR, TAILREC, VARARG +} + private fun String.shorten(maxLength: Int) = lineSequence().first().let { if (it.length != length || it.length > maxLength) it.take(maxLength - 3) + "..." else it } diff --git a/core/src/main/kotlin/model/properties/properties.kt b/core/src/main/kotlin/model/properties/properties.kt index 7010d0df..4c8b345f 100644 --- a/core/src/main/kotlin/model/properties/properties.kt +++ b/core/src/main/kotlin/model/properties/properties.kt @@ -1,5 +1,8 @@ package org.jetbrains.dokka.model.properties +import org.jetbrains.dokka.model.Documentable +import org.jetbrains.dokka.model.ExtraModifiers + interface ExtraProperty<in C : Any> { interface Key<in C : Any, T : Any> { fun mergeStrategyFor(left: T, right: T): MergeStrategy<C> = MergeStrategy.Fail { |