From 21dcc4a472f88dd3ce1a1e7d8406905552896d3c Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 4 Nov 2015 13:56:13 +0100 Subject: extract JavadocParser to a separate file; extract DeclarationLinkResolver out of DocumentationBuilder --- src/main.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.kt') diff --git a/src/main.kt b/src/main.kt index 46b9a2dc..1bb0d643 100644 --- a/src/main.kt +++ b/src/main.kt @@ -216,8 +216,9 @@ fun buildDocumentationModule(environment: AnalysisEnvironment, val fragments = fragmentFiles.map { session.getPackageFragment(it.packageFqName) }.filterNotNull().distinct() val refGraph = NodeReferenceGraph() - val documentationBuilder = DocumentationBuilder(resolutionFacade, session, options, refGraph, logger) - val packageDocs = PackageDocs(documentationBuilder, fragments.firstOrNull(), logger) + val linkResolver = DeclarationLinkResolver(resolutionFacade, refGraph, logger) + val documentationBuilder = DocumentationBuilder(resolutionFacade, session, linkResolver, options, refGraph, logger) + val packageDocs = PackageDocs(linkResolver, fragments.firstOrNull(), logger) for (include in includes) { packageDocs.parse(include) } -- cgit