aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-01-15 14:59:50 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-01-30 19:20:57 +0100
commit0783f6fbe2104334195964bbc91cb584cbbab4e0 (patch)
tree8fc0829c2b62eba049131b4ec4683aff5906bfbe /src/Kotlin
parentb5286f576f470ad1665a7b1acc9ea276bc1a0c18 (diff)
downloaddokka-0783f6fbe2104334195964bbc91cb584cbbab4e0.tar.gz
dokka-0783f6fbe2104334195964bbc91cb584cbbab4e0.tar.bz2
dokka-0783f6fbe2104334195964bbc91cb584cbbab4e0.zip
Ant task for Dokka
Diffstat (limited to 'src/Kotlin')
-rw-r--r--src/Kotlin/DocumentationBuilder.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt
index c0533437..976626db 100644
--- a/src/Kotlin/DocumentationBuilder.kt
+++ b/src/Kotlin/DocumentationBuilder.kt
@@ -32,7 +32,7 @@ private fun isSamePackage(descriptor1: DeclarationDescriptor, descriptor2: Decla
return package1 != null && package2 != null && package1.fqName == package2.fqName
}
-class DocumentationBuilder(val session: ResolveSession, val options: DocumentationOptions) {
+class DocumentationBuilder(val session: ResolveSession, val options: DocumentationOptions, val logger: DokkaLogger) {
val visibleToDocumentation = setOf(Visibilities.INTERNAL, Visibilities.PROTECTED, Visibilities.PUBLIC)
val descriptorToNode = hashMapOf<DeclarationDescriptor, DocumentationNode>()
val nodeToDescriptor = hashMapOf<DocumentationNode, DeclarationDescriptor>()
@@ -246,7 +246,7 @@ class DocumentationBuilder(val session: ResolveSession, val options: Documentati
descriptors.put(name.asString(), parts.flatMap { it.getMemberScope().getAllDescriptors() })
}
for ((packageName, declarations) in descriptors) {
- println(" package $packageName: ${declarations.count()} declarations")
+ logger.info(" package $packageName: ${declarations.count()} declarations")
val packageNode = DocumentationNode(packageName, Content.Empty, Kind.Package)
val externalClassNodes = hashMapOf<FqName, DocumentationNode>()
declarations.forEach { descriptor ->