Extract ErrorReportingContext from CommonBackendContext

This commit is contained in:
Sergey Bogolepov
2022-10-14 16:20:07 +03:00
committed by Space Team
parent c22cad07ed
commit 0b2bc06870
3 changed files with 11 additions and 8 deletions
@@ -27,10 +27,12 @@ interface LoggingContext {
fun log(message: () -> String)
}
interface CommonBackendContext : BackendContext, LoggingContext {
override val ir: Ir<CommonBackendContext>
interface ErrorReportingContext {
fun report(element: IrElement?, irFile: IrFile?, message: String, isError: Boolean)
}
interface CommonBackendContext : BackendContext, LoggingContext, ErrorReportingContext {
override val ir: Ir<CommonBackendContext>
val configuration: CompilerConfiguration
val scriptMode: Boolean