Extract mutable diagnostic context to separate interface

This commit is contained in:
Ilya Chernikov
2021-09-28 11:07:32 +02:00
parent 9e60c70db7
commit 21ea92cd4a
3 changed files with 14 additions and 12 deletions
@@ -10,14 +10,16 @@ import org.jetbrains.kotlin.config.LanguageVersionSettings
interface DiagnosticContext {
fun isDiagnosticSuppressed(diagnostic: KtDiagnostic): Boolean
fun addSuppressedDiagnostics(
val languageVersionSettings: LanguageVersionSettings
}
abstract class MutableDiagnosticContext : DiagnosticContext {
abstract fun addSuppressedDiagnostics(
diagnosticNames: Collection<String>,
allInfosSuppressed: Boolean,
allWarningsSuppressed: Boolean,
allErrorsSuppressed: Boolean
): DiagnosticContext
val languageVersionSettings: LanguageVersionSettings
}
abstract class DiagnosticReporter {