[FIR] KT-44698: Print file:line:offset on K2 crash
^KT-44698 Fixed
This commit is contained in:
+5
-4
@@ -335,9 +335,10 @@ class FirCheckersRunnerTransformer(private val diagnosticCollector: AbstractDiag
|
||||
return element
|
||||
}
|
||||
|
||||
override fun transformFile(file: FirFile, data: Nothing?): FirFile {
|
||||
val reporter = DiagnosticReporterFactory.createPendingReporter()
|
||||
diagnosticCollector.collectDiagnostics(file, reporter)
|
||||
return file
|
||||
override fun transformFile(file: FirFile, data: Nothing?): FirFile = file.also {
|
||||
withFileAnalysisExceptionWrapping(file) {
|
||||
val reporter = DiagnosticReporterFactory.createPendingReporter()
|
||||
diagnosticCollector.collectDiagnostics(file, reporter)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user