aboutsummaryrefslogtreecommitdiff
path: root/src/main.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.kt')
-rw-r--r--src/main.kt12
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
}