aboutsummaryrefslogtreecommitdiff
path: root/src/Generation/FileGenerator.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Generation/FileGenerator.kt')
-rw-r--r--src/Generation/FileGenerator.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generation/FileGenerator.kt b/src/Generation/FileGenerator.kt
index 5221c400..3e410d39 100644
--- a/src/Generation/FileGenerator.kt
+++ b/src/Generation/FileGenerator.kt
@@ -12,7 +12,7 @@ public class FileGenerator(val signatureGenerator: LanguageService,
public fun buildOutline(node: DocumentationNode): Unit = buildOutlines(listOf(node))
public fun buildPages(nodes: Iterable<DocumentationNode>) {
- for ((location, items) in nodes.groupByTo(LinkedHashMap()) { locationService.location(it) }) {
+ for ((location, items) in nodes.groupBy { locationService.location(it) }) {
val file = location.file.appendExtension(formatService.extension)
file.getParentFile()?.mkdirs()
FileOutputStream(file).use {
@@ -25,7 +25,7 @@ public class FileGenerator(val signatureGenerator: LanguageService,
}
public fun buildOutlines(nodes: Iterable<DocumentationNode>) {
- for ((location, items) in nodes.groupByTo(LinkedHashMap()) { locationService.location(it) }) {
+ for ((location, items) in nodes.groupBy { locationService.location(it) }) {
val file = location.file.appendExtension("yml") // TODO: hardcoded
file.getParentFile()?.mkdirs()
FileOutputStream(file).use {