1 write to _dataSource
Microsoft.CodeAnalysis.EditorFeatures (1)
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (1)
157_dataSource = dataSource;
58 references to _dataSource
Microsoft.CodeAnalysis.EditorFeatures (58)
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (24)
178if (_dataSource.AddedTagNotificationDelay == TaggerDelay.NearImmediate) 187_dataSource.AddedTagNotificationDelay.ComputeTimeDelay(), 215_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 222if (_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.TrackTextChanges)) 225if (_dataSource.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag)) 230nameof(_dataSource.CaretChangeBehavior) + " can only be specified for an " + nameof(IViewTaggerProvider)); 246_dataSource.RemoveTagSource(_textView, _subjectBuffer); 256_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 261if (_dataSource.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag)) 267if (_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.TrackTextChanges)) 281_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 292_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 313Contract.ThrowIfTrue(_dataSource.Options.Any(o => o is not Option2<bool> and not PerLanguageOption2<bool>), "All options must be Option2<bool> or PerLanguageOption2<bool>"); 315var eventSource = _dataSource.CreateEventSource(_textView, _subjectBuffer); 319var optionChangedEventSources = _dataSource.Options.Concat(_dataSource.FeatureOptions) 320.Select(globalOption => TaggerEventSources.OnGlobalOptionChanged(_dataSource.GlobalOptions, globalOption)) 337_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 343_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 352_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 358_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 367_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 373_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 380_dataSource.ThreadingContext.ThrowIfNotOnUIThread();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_IEqualityComparer.cs (1)
16=> x != null && y != null && x.Span == y.Span && _dataSource.TagEquals(x.Tag, y.Tag);
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (31)
34_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 36Debug.Assert(_dataSource.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag)); 38var caret = _dataSource.GetCaretPoint(_textView, _subjectBuffer); 55_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 69_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 76_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 111_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 113if (_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveAllTags)) 120if (_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveTagsThatIntersectEdits)) 164: new TagSpanIntervalTree<TTag>(snapshot.TextBuffer, _dataSource.SpanTrackingMode); 171=> _eventChangeQueue.AddWork(highPriority, _dataSource.CancelOnNewWork); 175await _dataSource.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 208_dataSource.ThreadingContext, _subjectBuffer, DelayTimeSpan.NonFocus, cancellationToken).ConfigureAwait(true); 211await _dataSource.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 213_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 223var caretPosition = _dataSource.GetCaretPoint(_textView, _subjectBuffer); 248await _dataSource.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 267_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 272var spansToTag = _dataSource.GetSpansToTag(_textView, _subjectBuffer); 354return new TagSpanIntervalTree<TTag>(textBuffer, _dataSource.SpanTrackingMode, newTags); 373return new TagSpanIntervalTree<TTag>(textBuffer, _dataSource.SpanTrackingMode, finalTags); 387if (_dataSource.Options.OfType<Option2<bool>>().Any(option => !_dataSource.GlobalOptions.GetOption(option))) 391return _dataSource.Options.OfType<PerLanguageOption2<bool>>().Any(option => languageName == null || !_dataSource.GlobalOptions.GetOption(option, languageName)); 399: _dataSource.ProduceTagsAsync(context, cancellationToken); 491if (!_dataSource.TagEquals(latest.Tag, previous.Tag)) 524_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 535_dataSource.ComputeInitialTagsSynchronously(buffer) && 539_dataSource.ThreadingContext.JoinableTaskFactory.Run(() => 552_dataSource.ThreadingContext.ThrowIfNotOnUIThread();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ReferenceCounting.cs (1)
26{_dataSource.StackTrace}
Tagging\AbstractAsynchronousTaggerProvider.TagSource_TagsChanged.cs (1)
28_dataSource.ThreadingContext.ThrowIfNotOnUIThread();