From 298065f1595e53f44ac63114fbb95d9caaaf9e8f Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Mon, 17 Jul 2023 17:33:46 +0300 Subject: Get rif of IDE plugin dependencies (#3073) * Get rif of IDE plugin dependencies Everything in this commit has been copy-pasted from IDE plugin and marked as internal --- subprojects/analysis-kotlin-descriptors/compiler/api/compiler.api | 2 +- .../kotlin/descriptors/compiler/configuration/AnalysisContext.kt | 1 - .../kotlin/descriptors/compiler/configuration/AnalysisEnvironment.kt | 4 ---- 3 files changed, 1 insertion(+), 6 deletions(-) (limited to 'subprojects/analysis-kotlin-descriptors/compiler') diff --git a/subprojects/analysis-kotlin-descriptors/compiler/api/compiler.api b/subprojects/analysis-kotlin-descriptors/compiler/api/compiler.api index 6c642ad6..0ad66c33 100644 --- a/subprojects/analysis-kotlin-descriptors/compiler/api/compiler.api +++ b/subprojects/analysis-kotlin-descriptors/compiler/api/compiler.api @@ -55,7 +55,7 @@ public abstract interface class org/jetbrains/dokka/analysis/kotlin/descriptors/ } public final class org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/AnalysisEnvironment : com/intellij/openapi/Disposable { - public fun (Lorg/jetbrains/kotlin/cli/common/messages/MessageCollector;Lorg/jetbrains/dokka/Platform;Lorg/jetbrains/dokka/analysis/kotlin/descriptors/compiler/CompilerExtensionPointProvider;Lorg/jetbrains/dokka/analysis/kotlin/descriptors/compiler/MockApplicationHack;Lorg/jetbrains/dokka/analysis/kotlin/descriptors/compiler/KLibService;)V + public fun (Lorg/jetbrains/kotlin/cli/common/messages/MessageCollector;Lorg/jetbrains/dokka/Platform;Lorg/jetbrains/dokka/analysis/kotlin/descriptors/compiler/MockApplicationHack;Lorg/jetbrains/dokka/analysis/kotlin/descriptors/compiler/KLibService;)V public fun dispose ()V } diff --git a/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/AnalysisContext.kt b/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/AnalysisContext.kt index 89ae8810..c0a0212a 100644 --- a/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/AnalysisContext.kt +++ b/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/AnalysisContext.kt @@ -48,7 +48,6 @@ internal fun createAnalysisContext( val analysisEnvironment = AnalysisEnvironment( DokkaMessageCollector(context.logger), sourceSet.analysisPlatform, - context.plugin().querySingle { compilerExtensionPointProvider }, context.plugin().querySingle { mockApplicationHack }, context.plugin().querySingle { klibService }, ).apply { diff --git a/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/AnalysisEnvironment.kt b/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/AnalysisEnvironment.kt index 611d1325..0fb07412 100644 --- a/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/AnalysisEnvironment.kt +++ b/subprojects/analysis-kotlin-descriptors/compiler/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/configuration/AnalysisEnvironment.kt @@ -91,7 +91,6 @@ internal const val JAR_SEPARATOR = "!/" class AnalysisEnvironment( private val messageCollector: MessageCollector, internal val analysisPlatform: Platform, - private val compilerExtensionPointProvider: CompilerExtensionPointProvider, private val mockApplicationHack: MockApplicationHack, private val kLibService: KLibService, ) : Disposable { @@ -148,9 +147,6 @@ class AnalysisEnvironment( CustomJavadocTagProvider { emptyList() } ) - compilerExtensionPointProvider.get().forEach { extension -> - registerExtensionPoint(extension.extensionDescriptor, extension.extensions, this) - } return environment } -- cgit