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); } } }
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); } } }
internal void AddCompilationErrorsFactory(CompilationErrorsFactory factory) { _sink.AddFactory(factory); }
internal void RemoveCompilationErrorsFactory(CompilationErrorsFactory factory) { _sink.RemoveFactory(factory); }
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); }