Extract ErrorReportingContext from CommonBackendContext
This commit is contained in:
committed by
Space Team
parent
c22cad07ed
commit
0b2bc06870
+5
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user