diff options
Diffstat (limited to 'src/Generation/Generator.kt')
-rw-r--r-- | src/Generation/Generator.kt | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Generation/Generator.kt b/src/Generation/Generator.kt index 7dcabb0b..d7db1c52 100644 --- a/src/Generation/Generator.kt +++ b/src/Generation/Generator.kt @@ -3,13 +3,15 @@ package org.jetbrains.dokka public interface Generator { fun buildPages(nodes: Iterable<DocumentationNode>) fun buildOutlines(nodes: Iterable<DocumentationNode>) +} - final fun buildAll(nodes: Iterable<DocumentationNode>) { - buildPages(nodes) - buildOutlines(nodes) - } - - final fun buildPage(node: DocumentationNode): Unit = buildPages(listOf(node)) - final fun buildOutline(node: DocumentationNode): Unit = buildOutlines(listOf(node)) - final fun buildAll(node: DocumentationNode): Unit = buildAll(listOf(node)) +fun Generator.buildAll(nodes: Iterable<DocumentationNode>) { + buildPages(nodes) + buildOutlines(nodes) } + +fun Generator.buildPage(node: DocumentationNode): Unit = buildPages(listOf(node)) + +fun Generator.buildOutline(node: DocumentationNode): Unit = buildOutlines(listOf(node)) + +fun Generator.buildAll(node: DocumentationNode): Unit = buildAll(listOf(node)) |