diff options
-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 { |