aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/renderers/FileWriter.kt
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2019-12-13 14:27:25 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-01-16 11:55:53 +0100
commit0917459a2eafabc563e79579a0322bb7832cae1f (patch)
treea5ac67c7595232a28af27716711bee644d3a12f3 /core/src/main/kotlin/renderers/FileWriter.kt
parent9e69d2db272b2ebe9317b88ce222473c4df355af (diff)
downloaddokka-0917459a2eafabc563e79579a0322bb7832cae1f.tar.gz
dokka-0917459a2eafabc563e79579a0322bb7832cae1f.tar.bz2
dokka-0917459a2eafabc563e79579a0322bb7832cae1f.zip
Refactor of DokkaGenerator pipeline, removed ExtensionPoints dependencies other than context
Diffstat (limited to 'core/src/main/kotlin/renderers/FileWriter.kt')
-rw-r--r--core/src/main/kotlin/renderers/FileWriter.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/renderers/FileWriter.kt b/core/src/main/kotlin/renderers/FileWriter.kt
index c9785dfd..5439db17 100644
--- a/core/src/main/kotlin/renderers/FileWriter.kt
+++ b/core/src/main/kotlin/renderers/FileWriter.kt
@@ -4,10 +4,10 @@ import java.io.File
import java.io.IOException
import java.nio.file.Paths
-class FileWriter(override val root: String, override val extension: String) : Writer {
+class FileWriter(val root: String, override val extension: String): OutputWriter {
private val createdFiles: MutableSet<String> = mutableSetOf()
- override fun write(path: String, text: String, ext: String){
+ override fun write(path: String, text: String, ext: String) {
if (createdFiles.contains(path)) {
println("ERROR. An attempt to write $root/$path several times!")
return