aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/FormatService.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 21:15:04 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 21:15:04 +0400
commitcd7084ddc4e6e7f32a35d265bfb1307fdaf27011 (patch)
treea01d7ded59d59cf96d67ad085424294e36f014a7 /src/Formats/FormatService.kt
parent0b2e3467bb6ae3d6df935063f0bc9579cd392c98 (diff)
downloaddokka-cd7084ddc4e6e7f32a35d265bfb1307fdaf27011.tar.gz
dokka-cd7084ddc4e6e7f32a35d265bfb1307fdaf27011.tar.bz2
dokka-cd7084ddc4e6e7f32a35d265bfb1307fdaf27011.zip
Refactor to multiple-nodes formatting, implement smarter markdown format service.
Diffstat (limited to 'src/Formats/FormatService.kt')
-rw-r--r--src/Formats/FormatService.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Formats/FormatService.kt b/src/Formats/FormatService.kt
index 9e36c400..3708e9a7 100644
--- a/src/Formats/FormatService.kt
+++ b/src/Formats/FormatService.kt
@@ -2,7 +2,7 @@ package org.jetbrains.dokka
public trait FormatService {
val extension: String
- fun format(node: DocumentationNode, to: StringBuilder)
+ fun format(nodes: Iterable<DocumentationNode>, to: StringBuilder)
}
-fun FormatService.format(node: DocumentationNode): String = StringBuilder { format(node, this) }.toString() \ No newline at end of file
+fun FormatService.format(node: Iterable<DocumentationNode>): String = StringBuilder { format(node, this) }.toString() \ No newline at end of file