K2: introduce infrastructure for LanguageVersionSettings checkers

This commit is contained in:
Mikhail Glukhikh
2023-07-14 18:03:30 +02:00
committed by Space Team
parent ba75ee4c03
commit 8c305d6143
23 changed files with 183 additions and 12 deletions
@@ -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()