1 2 3 4 5 6 7 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()