Remove CompositeICReporterAsync
This commit is contained in:
committed by
Alexander Likhachev
parent
2c1e4c1769
commit
97a09680d5
+2
-34
@@ -8,11 +8,10 @@ package org.jetbrains.kotlin.daemon.report.experimental
|
|||||||
import kotlinx.coroutines.*
|
import kotlinx.coroutines.*
|
||||||
import org.jetbrains.kotlin.cli.common.ExitCode
|
import org.jetbrains.kotlin.cli.common.ExitCode
|
||||||
import org.jetbrains.kotlin.daemon.common.*
|
import org.jetbrains.kotlin.daemon.common.*
|
||||||
|
import org.jetbrains.kotlin.daemon.report.CompositeICReporter
|
||||||
import org.jetbrains.kotlin.daemon.report.RemoteICReporter
|
import org.jetbrains.kotlin.daemon.report.RemoteICReporter
|
||||||
import org.jetbrains.kotlin.incremental.ICReporter
|
|
||||||
import org.jetbrains.kotlin.incremental.ICReporterBase
|
import org.jetbrains.kotlin.incremental.ICReporterBase
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.Serializable
|
|
||||||
|
|
||||||
internal class DebugMessagesICReporterAsync(
|
internal class DebugMessagesICReporterAsync(
|
||||||
private val servicesFacade: CompilerServicesFacadeBaseAsync,
|
private val servicesFacade: CompilerServicesFacadeBaseAsync,
|
||||||
@@ -103,37 +102,6 @@ internal class BuildReportICReporterAsync(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal class CompositeICReporterAsync(private val reporters: Iterable<RemoteICReporter>) :
|
|
||||||
RemoteICReporter {
|
|
||||||
override fun report(message: () -> String) {
|
|
||||||
reporters.forEach { it.report(message) }
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun reportVerbose(message: () -> String) {
|
|
||||||
reporters.forEach { it.reportVerbose(message) }
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun reportCompileIteration(incremental: Boolean, sourceFiles: Collection<File>, exitCode: ExitCode) {
|
|
||||||
reporters.forEach { it.reportCompileIteration(incremental, sourceFiles, exitCode) }
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun reportMarkDirtyClass(affectedFiles: Iterable<File>, classFqName: String) {
|
|
||||||
reporters.forEach { it.reportMarkDirtyClass(affectedFiles, classFqName) }
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun reportMarkDirtyMember(affectedFiles: Iterable<File>, scope: String, name: String) {
|
|
||||||
reporters.forEach { it.reportMarkDirtyMember(affectedFiles, scope, name) }
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun reportMarkDirty(affectedFiles: Iterable<File>, reason: String) {
|
|
||||||
reporters.forEach { it.reportMarkDirty(affectedFiles, reason) }
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun flush() {
|
|
||||||
reporters.forEach { it.flush() }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fun getICReporterAsync(
|
fun getICReporterAsync(
|
||||||
servicesFacade: CompilerServicesFacadeBaseAsync,
|
servicesFacade: CompilerServicesFacadeBaseAsync,
|
||||||
compilationResults: CompilationResultsAsync?,
|
compilationResults: CompilationResultsAsync?,
|
||||||
@@ -166,5 +134,5 @@ fun getICReporterAsync(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return CompositeICReporterAsync(reporters)
|
return CompositeICReporter(reporters)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user