public void AddErrors(IEnumerable <CompilerError> errors) { if (errors == null || !errors.Any()) { return; } var cleanErrors = errors.Where(e => e != null && !string.IsNullOrEmpty(e.FileName)); lock (_snapshots) { foreach (var error in cleanErrors.GroupBy(t => t.FileName)) { var snapshot = new TableEntriesSnapshot(error.Key, error); _snapshots[error.Key] = snapshot; } } UpdateAllSinks(); }
public void AddErrors(IEnumerable<CompilerError> errors) { if (errors == null || !errors.Any()) return; var cleanErrors = errors.Where(e => e != null && !string.IsNullOrEmpty(e.FileName)); lock (_snapshots) { foreach (var error in cleanErrors.GroupBy(t => t.FileName)) { var snapshot = new TableEntriesSnapshot(error.Key, error); _snapshots[error.Key] = snapshot; } } UpdateAllSinks(); }