diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-15 15:54:05 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-15 15:54:05 +0400 |
commit | 62cb509a1a5adf0e5f9ba8d8e7545a93eb8516b2 (patch) | |
tree | 52e0ad3452a198ee279df8ed3e93c9c0a39a5f6b /src/Formats/FormatService.kt | |
parent | ad884a9ce79f191f3a7b7aed115080e341265ef3 (diff) | |
download | dokka-62cb509a1a5adf0e5f9ba8d8e7545a93eb8516b2.tar.gz dokka-62cb509a1a5adf0e5f9ba8d8e7545a93eb8516b2.tar.bz2 dokka-62cb509a1a5adf0e5f9ba8d8e7545a93eb8516b2.zip |
Refactor formatting service to detach grouping logic from markup
Diffstat (limited to 'src/Formats/FormatService.kt')
-rw-r--r-- | src/Formats/FormatService.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Formats/FormatService.kt b/src/Formats/FormatService.kt index 3708e9a7..b106692a 100644 --- a/src/Formats/FormatService.kt +++ b/src/Formats/FormatService.kt @@ -2,7 +2,8 @@ package org.jetbrains.dokka public trait FormatService { val extension: String - fun format(nodes: Iterable<DocumentationNode>, to: StringBuilder) + fun appendNodes(to: StringBuilder, + nodes: Iterable<DocumentationNode>) } -fun FormatService.format(node: Iterable<DocumentationNode>): String = StringBuilder { format(node, this) }.toString()
\ No newline at end of file +fun FormatService.format(nodes: Iterable<DocumentationNode>): String = StringBuilder { appendNodes(this, nodes) }.toString()
\ No newline at end of file |