[FIR] Replace FirEmptyDiagnostic with FirStubDiagnostic

FirStubDiagnostic hold reason from original diagnostic
It's useful in HTML fir dump
This commit is contained in:
Dmitriy Novozhilov
2019-11-14 11:23:59 +03:00
parent ee20f88837
commit 11063a25a8
18 changed files with 33 additions and 33 deletions
@@ -9,6 +9,6 @@ abstract class FirDiagnostic {
abstract val reason: String
}
object FirEmptyDiagnostic : FirDiagnostic() {
override val reason: String get() = "Empty diagnostic"
class FirStubDiagnostic(val original: FirDiagnostic) : FirDiagnostic() {
override val reason: String get() = original.reason
}