Rename ICReporter.report/reportVerbose to info/debug
to make it clear what severity levels they are mapped to. ^KT-52839 Fixed
This commit is contained in:
@@ -18,17 +18,16 @@ interface ICReporter {
|
||||
|
||||
fun report(message: () -> String, severity: ReportSeverity)
|
||||
|
||||
// TODO: Move these 3 functions outside of this interface and make them extension functions so they can't be overridden
|
||||
fun warn(message: () -> String) = report(message, severity = ReportSeverity.WARNING)
|
||||
fun report(message: () -> String) = report(message, severity = ReportSeverity.INFO)
|
||||
fun reportVerbose(message: () -> String) = report(message, severity = ReportSeverity.DEBUG)
|
||||
|
||||
fun reportCompileIteration(incremental: Boolean, sourceFiles: Collection<File>, exitCode: ExitCode)
|
||||
fun reportMarkDirtyClass(affectedFiles: Iterable<File>, classFqName: String)
|
||||
fun reportMarkDirtyMember(affectedFiles: Iterable<File>, scope: String, name: String)
|
||||
fun reportMarkDirty(affectedFiles: Iterable<File>, reason: String)
|
||||
}
|
||||
|
||||
fun ICReporter.warn(message: () -> String) = report(message, severity = ICReporter.ReportSeverity.WARNING)
|
||||
fun ICReporter.info(message: () -> String) = report(message, severity = ICReporter.ReportSeverity.INFO)
|
||||
fun ICReporter.debug(message: () -> String) = report(message, severity = ICReporter.ReportSeverity.DEBUG)
|
||||
|
||||
object DoNothingICReporter : ICReporter {
|
||||
override fun report(message: () -> String, severity: ICReporter.ReportSeverity) {}
|
||||
override fun reportCompileIteration(incremental: Boolean, sourceFiles: Collection<File>, exitCode: ExitCode) {}
|
||||
|
||||
@@ -18,7 +18,7 @@ abstract class ICReporterBase(private val pathsBase: File? = null) : ICReporter
|
||||
|
||||
override fun reportMarkDirty(affectedFiles: Iterable<File>, reason: String) {
|
||||
affectedFiles.forEach { file ->
|
||||
reportVerbose { "${pathsAsString(file)} is marked dirty: $reason" }
|
||||
debug { "${pathsAsString(file)} is marked dirty: $reason" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ import org.jetbrains.kotlin.build.GeneratedJvmClass
|
||||
import org.jetbrains.kotlin.build.JvmSourceRoot
|
||||
import org.jetbrains.kotlin.build.isModuleMappingFile
|
||||
import org.jetbrains.kotlin.build.report.ICReporter
|
||||
import org.jetbrains.kotlin.build.report.debug
|
||||
import org.jetbrains.kotlin.config.Services
|
||||
import org.jetbrains.kotlin.incremental.components.LookupTracker
|
||||
import org.jetbrains.kotlin.load.kotlin.incremental.components.IncrementalCache
|
||||
@@ -152,7 +153,7 @@ fun ChangesCollector.getDirtyData(
|
||||
val sealedParents = HashSet<FqName>()
|
||||
|
||||
for (change in changes()) {
|
||||
reporter.reportVerbose { "Process $change" }
|
||||
reporter.debug { "Process $change" }
|
||||
|
||||
if (change is ChangeInfo.SignatureChanged) {
|
||||
val fqNames = if (!change.areSubclassesAffected) listOf(change.fqName) else withSubtypes(change.fqName, caches)
|
||||
|
||||
Reference in New Issue
Block a user