aboutsummaryrefslogtreecommitdiff
path: root/src/main.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-11-04 13:56:13 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-11-04 13:56:13 +0100
commit21dcc4a472f88dd3ce1a1e7d8406905552896d3c (patch)
tree90dcf22298be4741cb05d38a579cb41256d94db4 /src/main.kt
parentfb25c1eaf41ae314d19d6cda55446a2ab6b63715 (diff)
downloaddokka-21dcc4a472f88dd3ce1a1e7d8406905552896d3c.tar.gz
dokka-21dcc4a472f88dd3ce1a1e7d8406905552896d3c.tar.bz2
dokka-21dcc4a472f88dd3ce1a1e7d8406905552896d3c.zip
extract JavadocParser to a separate file; extract DeclarationLinkResolver out of DocumentationBuilder
Diffstat (limited to 'src/main.kt')
-rw-r--r--src/main.kt5
1 files changed, 3 insertions, 2 deletions
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)
}