From 128e3fee4182c0957e266accc99b174815486520 Mon Sep 17 00:00:00 2001 From: Szymon Świstun Date: Mon, 2 Mar 2020 11:07:47 +0100 Subject: Add more information to Documentables --- core/src/main/kotlin/model/Documentable.kt | 5 +++++ core/src/main/kotlin/model/properties/properties.kt | 3 +++ 2 files changed, 8 insertions(+) (limited to 'core/src') 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 { interface Key { fun mergeStrategyFor(left: T, right: T): MergeStrategy = MergeStrategy.Fail { -- cgit