aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/FormatService.kt
blob: 3708e9a70a43dada6556d6171893a209ca7abe7b (plain)
1
2
3
4
5
6
7
8
package org.jetbrains.dokka

public trait FormatService {
    val extension: String
    fun format(nodes: Iterable<DocumentationNode>, to: StringBuilder)
}

fun FormatService.format(node: Iterable<DocumentationNode>): String = StringBuilder { format(node, this) }.toString()