aboutsummaryrefslogtreecommitdiff
path: root/src/main.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-20 17:12:57 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-20 17:12:57 +0100
commit6620764c5f18c87933369131602b24bd2fa490e8 (patch)
treedd7045487ac5fabe78574a4b41eb49cc2e58f395 /src/main.kt
parentbfe53b9ea3359baee1785c2f6291bb5408597e28 (diff)
downloaddokka-6620764c5f18c87933369131602b24bd2fa490e8.tar.gz
dokka-6620764c5f18c87933369131602b24bd2fa490e8.tar.bz2
dokka-6620764c5f18c87933369131602b24bd2fa490e8.zip
pending references logic moved from DocumentationBuilder to model
Diffstat (limited to 'src/main.kt')
-rw-r--r--src/main.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.kt b/src/main.kt
index 44c435d2..535eee5c 100644
--- a/src/main.kt
+++ b/src/main.kt
@@ -195,7 +195,8 @@ fun buildDocumentationModule(environment: AnalysisEnvironment,
val fragments = fragmentFiles.map { session.getPackageFragment(it.getPackageFqName()) }.filterNotNull().distinct()
val moduleContent = Content()
- val documentationBuilder = DocumentationBuilder(session, options, logger)
+ val pendingReferences = arrayListOf<PendingDocumentationReference>()
+ val documentationBuilder = DocumentationBuilder(session, options, pendingReferences, logger)
for (include in includes) {
val file = File(include)
if (file.exists()) {
@@ -211,13 +212,14 @@ fun buildDocumentationModule(environment: AnalysisEnvironment,
with(documentationBuilder) {
documentationModule.appendFragments(fragments)
- documentationBuilder.resolveReferences()
}
val javaFiles = environment.getJavaSourceFiles().filter(filesToDocumentFilter)
val javaDocumentationBuilder = JavaDocumentationBuilder(options)
javaFiles.map { javaDocumentationBuilder.appendFile(it, documentationModule) }
+ pendingReferences.forEach { it.resolve() }
+
documentationModule
}