예제 #1
0
        public void AddErrors(FileErrorCollection result)
        {
            if (result == null || !result.Errors.Any())
            {
                return;
            }

            result.Errors = result.Errors.Where(v => !snapshots.Any(s => s.Value.Errors.Contains(v))).ToList();

            var snapshot = new TableEntriesSnapshot(result);

            snapshots[result.FilePath] = snapshot;

            this.UpdateAllSinks();
        }
예제 #2
0
        public void AddErrors(FileErrorCollection result)
        {
            if (result == null || result.Errors.All(e => e.ErrorType == TagErrorType.Hidden))
            {
                return;
            }

            result.Errors = result.Errors.Where(v => !Snapshots.Any(s => s.Value.Errors.Contains(v)) && v.ErrorType != TagErrorType.Hidden).ToList();

            var snapshot = new TableEntriesSnapshot(result);

            Snapshots[result.FilePath] = snapshot;

            this.UpdateAllSinks();
        }
예제 #3
0
 internal TableEntriesSnapshot(FileErrorCollection result)
 {
     this.projectName = result.Project;
     this.Errors.AddRange(result.Errors);
     this.FilePath = result.FilePath;
 }