コード例 #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
ファイル: SinkManager.cs プロジェクト: Anjireddy4246/meta-cs
 internal void AddCompilationErrorsFactory(CompilationErrorsFactory factory)
 {
     _sink.AddFactory(factory);
 }
コード例 #4
0
ファイル: SinkManager.cs プロジェクト: Anjireddy4246/meta-cs
 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);
 }