aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 18:38:02 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 18:38:02 +0400
commit073d8613fdc105baacaee4d138755f02f658acbe (patch)
tree82666704e4ade222101efee7c003c0c252f0167c
parent43d969f01a4566d53e95bccd589e233100282ccd (diff)
downloaddokka-073d8613fdc105baacaee4d138755f02f658acbe.tar.gz
dokka-073d8613fdc105baacaee4d138755f02f658acbe.tar.bz2
dokka-073d8613fdc105baacaee4d138755f02f658acbe.zip
Cleanup
-rw-r--r--src/Generation/FileGenerator.kt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Generation/FileGenerator.kt b/src/Generation/FileGenerator.kt
index b174368f..105c14e6 100644
--- a/src/Generation/FileGenerator.kt
+++ b/src/Generation/FileGenerator.kt
@@ -5,13 +5,14 @@ import java.io.File
public class FileGenerator(val signatureGenerator: SignatureGenerator,
val locationService: LocationService,
val formatService: FormatService) {
+
public fun generate(node: DocumentationNode) {
val location = locationService.location(node)
val file = location.file.appendExtension(formatService.extension)
file.getParentFile()?.mkdirs()
file.writeText(formatService.format(node), defaultCharset)
- val items = node.members.sortBy { it.name }
- for (child in items)
- generate(child)
+ val members = node.members.sortBy { it.name }
+ for (member in members)
+ generate(member)
}
} \ No newline at end of file