[FIR] Replace FirEmptyDiagnostic with FirStubDiagnostic
FirStubDiagnostic hold reason from original diagnostic It's useful in HTML fir dump
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user