FIR: transform DiagnosticBuilder DSL to an object

To make diagnostics visible in symbol search in IJ
This commit is contained in:
Ilya Kirillov
2021-02-09 21:34:03 +01:00
parent 15aaf3a078
commit 0a72e16451
8 changed files with 162 additions and 154 deletions
@@ -35,7 +35,7 @@ import kotlin.reflect.full.isSubclassOf
object HLDiagnosticConverter {
fun convert(diagnosticList: DiagnosticList): HLDiagnosticList =
HLDiagnosticList(diagnosticList.diagnostics.map(::convertDiagnostic))
HLDiagnosticList(diagnosticList.allDiagnostics.map(::convertDiagnostic))
private fun convertDiagnostic(diagnostic: DiagnosticData): HLDiagnostic =
HLDiagnostic(