예제 #1
0
        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();
        }
예제 #2
0
        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();
        }