K2: introduce infrastructure for LanguageVersionSettings checkers
This commit is contained in:
committed by
Space Team
parent
ba75ee4c03
commit
8c305d6143
@@ -103,7 +103,9 @@ fun compileModulesUsingFrontendIrAndLightTree(
|
||||
)
|
||||
|
||||
val renderDiagnosticName = moduleConfiguration.getBoolean(CLIConfigurationKeys.RENDER_DIAGNOSTIC_INTERNAL_NAME)
|
||||
val diagnosticsReporter = DiagnosticReporterFactory.createPendingReporter()
|
||||
val diagnosticsReporter = DiagnosticReporterFactory.createPendingReporter { isError, message ->
|
||||
messageCollector.report(if (isError) CompilerMessageSeverity.ERROR else CompilerMessageSeverity.WARNING, message)
|
||||
}
|
||||
val compilerEnvironment = ModuleCompilerEnvironment(projectEnvironment, diagnosticsReporter)
|
||||
|
||||
performanceManager?.notifyAnalysisStarted()
|
||||
|
||||
Reference in New Issue
Block a user