Skip to content

Commit

Permalink
Add yet another check
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Nov 21, 2023
1 parent 3aae66a commit 9ff4919
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ internal class DefaultDescriptorToDocumentableTranslator(
.mapNotNull { analysisContext.resolveSession.getPackageFragment(it) }
.toList()

val javadocParser = JavadocParser(
docCommentParsers = context.plugin<JavaAnalysisPlugin>().query { docCommentParsers },
docCommentFinder = context.plugin<JavaAnalysisPlugin>().docCommentFinder
)

val javadocParser =
if (sourceSet.analysisPlatform == Platform.jvm)
JavadocParser(
docCommentParsers = context.plugin<JavaAnalysisPlugin>().query { docCommentParsers },
docCommentFinder = context.plugin<JavaAnalysisPlugin>().docCommentFinder
)
else null

return DokkaDescriptorVisitor(sourceSet, kdocFinder, kotlinAnalysis[sourceSet], context.logger, javadocParser).run {
packageFragments.parallelMap {
Expand Down

0 comments on commit 9ff4919

Please sign in to comment.