package org.jetbrains.dokka public trait FormatService { val extension: String fun appendNodes(location: Location, to: StringBuilder, nodes: Iterable) fun appendOutline(location: Location, to: StringBuilder, nodes: Iterable) } fun FormatService.format(location: Location, nodes: Iterable): String = StringBuilder { appendNodes(location, this, nodes) }.toString() fun FormatService.formatOutline(location: Location, nodes: Iterable): String = StringBuilder { appendOutline(location, this, nodes) }.toString()