diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 19:27:12 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 19:27:12 +0100 |
commit | c1a1cf14edfcf3b1b0cd166d60cee30e109ffe1a (patch) | |
tree | 221f5019f27282cb52280d4627168a7ba79093a1 | |
parent | 7fbff24a81a7bcc453e1c4e30acdcf7b38c68265 (diff) | |
download | dokka-c1a1cf14edfcf3b1b0cd166d60cee30e109ffe1a.tar.gz dokka-c1a1cf14edfcf3b1b0cd166d60cee30e109ffe1a.tar.bz2 dokka-c1a1cf14edfcf3b1b0cd166d60cee30e109ffe1a.zip |
call appendFragments() method instead of duplicating its code
-rw-r--r-- | src/main.kt | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/main.kt b/src/main.kt index 0c853bc7..b496b1fd 100644 --- a/src/main.kt +++ b/src/main.kt @@ -98,17 +98,7 @@ public fun main(args: Array<String>) { } val documentationModule = DocumentationModule(arguments.moduleName, moduleContent) - - val descriptors = hashMapOf<String, List<DeclarationDescriptor>>() - for ((name, parts) in fragments.groupBy { it.fqName }) { - descriptors.put(name.asString(), parts.flatMap { it.getMemberScope().getAllDescriptors() }) - } - for ((packageName, declarations) in descriptors) { - println(" package $packageName: ${declarations.count()} nodes") - val packageNode = DocumentationNode(packageName, Content.Empty, DocumentationNode.Kind.Package) - packageNode.appendChildren(declarations, DocumentationReference.Kind.Member) - documentationModule.append(packageNode, DocumentationReference.Kind.Member) - } + documentationModule.appendFragments(fragments) documentationBuilder.resolveReferences(documentationModule) documentationModule } |