errorToResult property

Map<AnalysisError, AnalysisResultWithErrors> get errorToResult

A map from syntaxErrors to per-file results

Implementation

Map<AnalysisError, AnalysisResultWithErrors> get errorToResult {
  return {
    for (final file in filesWithErrors)
      for (final error in file.errors)
        if (_isSyntaxError(error)) error: file,
  };
}