diff options
author | Dmitry Jemerov <intelliyole@gmail.com> | 2015-01-30 19:23:08 +0100 |
---|---|---|
committer | Dmitry Jemerov <intelliyole@gmail.com> | 2015-01-30 19:23:08 +0100 |
commit | da1b31b03bc70bf6feb1111e68e5ffd032a6d82c (patch) | |
tree | 871bafd9851a6508395e3d7a4a920129b23e006a /src/Kotlin/DocumentationBuilder.kt | |
parent | b5286f576f470ad1665a7b1acc9ea276bc1a0c18 (diff) | |
parent | 1602b0f593cd0b9d0895177ce71827d934c8982b (diff) | |
download | dokka-da1b31b03bc70bf6feb1111e68e5ffd032a6d82c.tar.gz dokka-da1b31b03bc70bf6feb1111e68e5ffd032a6d82c.tar.bz2 dokka-da1b31b03bc70bf6feb1111e68e5ffd032a6d82c.zip |
Merge pull request #19 from orangy/ant-task
Ant task for Dokka
Diffstat (limited to 'src/Kotlin/DocumentationBuilder.kt')
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 4 |
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 -> |