aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/FormatService.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Formats/FormatService.kt')
-rw-r--r--src/Formats/FormatService.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Formats/FormatService.kt b/src/Formats/FormatService.kt
new file mode 100644
index 00000000..9e36c400
--- /dev/null
+++ b/src/Formats/FormatService.kt
@@ -0,0 +1,8 @@
+package org.jetbrains.dokka
+
+public trait FormatService {
+ val extension: String
+ fun format(node: DocumentationNode, to: StringBuilder)
+}
+
+fun FormatService.format(node: DocumentationNode): String = StringBuilder { format(node, this) }.toString() \ No newline at end of file