FIR: implement separate diagnostic collector/reporter for IDE

This commit is contained in:
Mikhail Glukhikh
2019-12-09 15:29:54 +03:00
parent fbf1dbf2da
commit 83ccd7dd1c
4 changed files with 48 additions and 6 deletions
@@ -26,7 +26,7 @@ abstract class AbstractDiagnosticCollector {
protected abstract fun initializeCollector()
protected abstract fun getCollectedDiagnostics(): Iterable<ConeDiagnostic>
internal abstract fun runCheck(block: (DiagnosticReporter) -> Unit)
abstract fun runCheck(block: (DiagnosticReporter) -> Unit)
private val components: MutableList<AbstractDiagnosticCollectorComponent> = mutableListOf()
private var componentsInitialized = false