diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-08-04 17:51:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 17:51:28 +0200 |
commit | 0be397336e89782cda94c8bf55005a2be9abecde (patch) | |
tree | ad6b13828bd18a26b3de26b447b88ab4b2e8719f /plugins/base/src/main/kotlin/deprecated/ParsersFactoriesDeprecatedAPI.kt | |
parent | ddcaa1864ffc26e8482770ad2c16ba424af8a0ac (diff) | |
download | dokka-0be397336e89782cda94c8bf55005a2be9abecde.tar.gz dokka-0be397336e89782cda94c8bf55005a2be9abecde.tar.bz2 dokka-0be397336e89782cda94c8bf55005a2be9abecde.zip |
Reintroduce removed analysis APIs with a deprecation message (#3104)
Diffstat (limited to 'plugins/base/src/main/kotlin/deprecated/ParsersFactoriesDeprecatedAPI.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/deprecated/ParsersFactoriesDeprecatedAPI.kt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/deprecated/ParsersFactoriesDeprecatedAPI.kt b/plugins/base/src/main/kotlin/deprecated/ParsersFactoriesDeprecatedAPI.kt new file mode 100644 index 00000000..ac6dfd73 --- /dev/null +++ b/plugins/base/src/main/kotlin/deprecated/ParsersFactoriesDeprecatedAPI.kt @@ -0,0 +1,20 @@ +@file:Suppress("DeprecatedCallableAddReplaceWith", "PackageDirectoryMismatch", "unused") + +package org.jetbrains.dokka.base.parsers.factories + +import org.jetbrains.dokka.base.deprecated.ANALYSIS_API_DEPRECATION_MESSAGE +import org.jetbrains.dokka.base.deprecated.AnalysisApiDeprecatedError +import org.jetbrains.dokka.links.DRI +import org.jetbrains.dokka.model.doc.DocTag + +@Deprecated(message = ANALYSIS_API_DEPRECATION_MESSAGE, level = DeprecationLevel.ERROR) +object DocTagsFromStringFactory { + @Deprecated(message = ANALYSIS_API_DEPRECATION_MESSAGE, level = DeprecationLevel.ERROR) + fun getInstance( + @Suppress("UNUSED_PARAMETER") name: String, + @Suppress("UNUSED_PARAMETER") children: List<DocTag> = emptyList(), + @Suppress("UNUSED_PARAMETER") params: Map<String, String> = emptyMap(), + @Suppress("UNUSED_PARAMETER") body: String? = null, + @Suppress("UNUSED_PARAMETER") dri: DRI? = null, + ): DocTag = throw AnalysisApiDeprecatedError() +} |