From 02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Thu, 31 Aug 2023 20:16:01 +0200 Subject: Enable explicit API mode (#3139) --- core/src/main/kotlin/pages/contentNodeProperties.kt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'core/src/main/kotlin/pages/contentNodeProperties.kt') diff --git a/core/src/main/kotlin/pages/contentNodeProperties.kt b/core/src/main/kotlin/pages/contentNodeProperties.kt index 0a400165..64f19572 100644 --- a/core/src/main/kotlin/pages/contentNodeProperties.kt +++ b/core/src/main/kotlin/pages/contentNodeProperties.kt @@ -6,29 +6,32 @@ package org.jetbrains.dokka.pages import org.jetbrains.dokka.model.properties.ExtraProperty -class SimpleAttr(val extraKey: String, val extraValue: String) : ExtraProperty { - data class SimpleAttrKey(val key: String) : ExtraProperty.Key +public class SimpleAttr( + public val extraKey: String, + public val extraValue: String +) : ExtraProperty { + public data class SimpleAttrKey(val key: String) : ExtraProperty.Key override val key: ExtraProperty.Key = SimpleAttrKey(extraKey) } -enum class BasicTabbedContentType : TabbedContentType { +public enum class BasicTabbedContentType : TabbedContentType { TYPE, CONSTRUCTOR, FUNCTION, PROPERTY, ENTRY, EXTENSION_PROPERTY, EXTENSION_FUNCTION } /** * It is used only to mark content for tabs in HTML format */ -interface TabbedContentType +public interface TabbedContentType /** * @see TabbedContentType */ -class TabbedContentTypeExtra(val value: TabbedContentType) : ExtraProperty { - companion object : ExtraProperty.Key +public class TabbedContentTypeExtra(public val value: TabbedContentType) : ExtraProperty { + public companion object : ExtraProperty.Key override val key: ExtraProperty.Key = TabbedContentTypeExtra } -object HtmlContent : ExtraProperty, ExtraProperty.Key { +public object HtmlContent : ExtraProperty, ExtraProperty.Key { override val key: ExtraProperty.Key = this } -- cgit