Skip to content

Commit

Permalink
Remove DefaultSamplesTransformer from analysis-kotlin-descriptors
Browse files Browse the repository at this point in the history
… and make `kotlinSampleProviderFactory` public (#3110)

* Remove `DefaultSamplesTransformer` from `analysis-kotlin-descriptors`

* Make `CompilerDescriptorAnalysisPlugin.kotlinSampleProviderFactory` public
  • Loading branch information
vmishenev authored Aug 16, 2023
1 parent 2269ac5 commit 34d6927
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 192 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public final class org/jetbrains/dokka/analysis/kotlin/descriptors/compiler/Comp
public final fun getKdocFinder ()Lorg/jetbrains/dokka/plugability/ExtensionPoint;
public final fun getKlibService ()Lorg/jetbrains/dokka/plugability/ExtensionPoint;
public final fun getKotlinAnalysis ()Lorg/jetbrains/dokka/plugability/ExtensionPoint;
public final fun getKotlinSampleProviderFactory ()Lorg/jetbrains/dokka/plugability/Extension;
public final fun getMockApplicationHack ()Lorg/jetbrains/dokka/plugability/ExtensionPoint;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ class CompilerDescriptorAnalysisPlugin : DokkaPlugin() {
CoreExtensions.sourceToDocumentableTranslator providing ::DefaultDescriptorToDocumentableTranslator
}

internal val defaultSamplesTransformer by extending {
CoreExtensions.pageTransformer providing ::DefaultSamplesTransformer
}

internal val descriptorFullClassHierarchyBuilder by extending {
plugin<InternalKotlinAnalysisPlugin>().fullClassHierarchyBuilder providing { DescriptorFullClassHierarchyBuilder() }
}

internal val kotlinSampleProviderFactory by extending {
/**
* StdLib has its own a sample provider
* So it should have a possibility to override this extension
*/
@InternalDokkaApi
val kotlinSampleProviderFactory by extending {
plugin<InternalKotlinAnalysisPlugin>().sampleProviderFactory providing ::KotlinSampleProviderFactory
}

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 34d6927

Please sign in to comment.