Пример #1
0
        internal void RemoveCompilationErrorsFactory(CompilationErrorsFactory factory)
        {
            // This call will always happen on the UI thread (it is a side-effect of adding or removing the 1st/last tagger).
            lock (_managers)
            {
                _factories.Remove(factory);

                foreach (var manager in _managers)
                {
                    manager.RemoveCompilationErrorsFactory(factory);
                }
            }
        }
Пример #2
0
        internal void AddCompilationErrorsFactory(CompilationErrorsFactory factory)
        {
            // This call will always happen on the UI thread (it is a side-effect of adding or removing the 1st/last tagger).
            lock (_managers)
            {
                _factories.Add(factory);

                // Tell the preexisting managers about the new spell checker
                foreach (var manager in _managers)
                {
                    manager.AddCompilationErrorsFactory(factory);
                }
            }
        }
Пример #3
0
 internal void AddCompilationErrorsFactory(CompilationErrorsFactory factory)
 {
     _sink.AddFactory(factory);
 }
Пример #4
0
 internal void RemoveCompilationErrorsFactory(CompilationErrorsFactory factory)
 {
     _sink.RemoveFactory(factory);
 }
Пример #5
0
 public CompilationErrorTagger(CompilationTaggerProvider taggerProvider, BackgroundCompilation backgroundCompilation)
     : base(taggerProvider, backgroundCompilation)
 {
     this.Factory = new CompilationErrorsFactory(this, new CompilationErrorsSnapshot(backgroundCompilation.FilePath, 0, backgroundCompilation.CompilationSnapshot));
     taggerProvider.AddCompilationErrorsFactory(this.Factory);
 }