1 write to _dataSource
Microsoft.CodeAnalysis.EditorFeatures (1)
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (1)
154_dataSource = dataSource;
62 references to _dataSource
Microsoft.CodeAnalysis.EditorFeatures (62)
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (27)
176if (_dataSource.AddedTagNotificationDelay == TaggerDelay.NearImmediate) 185_dataSource.AddedTagNotificationDelay.ComputeTimeDelay(), 200_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 217_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 220_dataSource.VisibilityTracker?.RegisterForVisibilityChanges(subjectBuffer, _onVisibilityChanged); 224if (_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveAllTags) || 225_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveTagsThatIntersectEdits)) 230if (_dataSource.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag)) 235nameof(_dataSource.CaretChangeBehavior) + " can only be specified for an " + nameof(IViewTaggerProvider)); 251_dataSource.RemoveTagSource(_textView, _subjectBuffer); 261_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 266if (_dataSource.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag)) 272if (_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveAllTags) || 273_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveTagsThatIntersectEdits)) 280_dataSource.VisibilityTracker?.UnregisterForVisibilityChanges(_subjectBuffer, _onVisibilityChanged); 285=> _dataSource.VisibilityTracker == null || _dataSource.VisibilityTracker.IsVisible(_subjectBuffer); 289_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 300_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 321Contract.ThrowIfTrue(_dataSource.Options.Any(o => o is not Option2<bool> and not PerLanguageOption2<bool>), "All options must be Option2<bool> or PerLanguageOption2<bool>"); 323var eventSource = _dataSource.CreateEventSource(_textView, _subjectBuffer); 327if (_dataSource.Options.IsEmpty && _dataSource.FeatureOptions.IsEmpty) 334TaggerEventSources.OnGlobalOptionChanged(_dataSource.GlobalOptions, option => 335_dataSource.Options.Contains(option) || _dataSource.FeatureOptions.Contains(option))); 340_dataSource.ThreadingContext.ThrowIfNotOnUIThread();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_IEqualityComparer.cs (1)
23return x.Span == y.Span && _dataSource.TagEquals(x.Tag, y.Tag);
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (32)
36_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 38Debug.Assert(_dataSource.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag)); 40var caret = _dataSource.GetCaretPoint(_textView, _subjectBuffer); 54_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 70_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 76_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 78if (_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveAllTags)) 85if (_dataSource.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveTagsThatIntersectEdits)) 135@this._dataSource.SpanTrackingMode, 178EnqueueWork(highPriority, _dataSource.SupportsFrozenPartialSemantics, nonFrozenComputationToken: null); 184_dataSource.CancelOnNewWork); 199if (!frozenPartialSemantics && _dataSource.SupportsFrozenPartialSemantics) 297var (isVisible, caretPosition, snapshotSpansToTag) = await _dataSource.MainThreadManager.PerformWorkOnMainThreadAsync( 314await _dataSource.VisibilityTracker.DelayWhileNonVisibleAsync( 315_dataSource.ThreadingContext, _dataSource.AsyncListener, _subjectBuffer, DelayTimeSpan.NonFocus, cancellationToken).NoThrowAwaitable(captureContext: true); 384_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 393var caretPosition = _dataSource.GetCaretPoint(_textView, _subjectBuffer); 396_dataSource.AddSpansToTag(_textView, _subjectBuffer, ref spansToTag.AsRef()); 516return new TagSpanIntervalTree<TTag>(newTags_safeToMutate[0].Span.Snapshot, _dataSource.SpanTrackingMode, newTags_safeToMutate); 534snapshot, _dataSource.SpanTrackingMode, newTags_safeToMutate); 556snapshot, _dataSource.SpanTrackingMode, newTags_safeToMutate); 568foreach (var option in _dataSource.Options) 570if (option is Option2<bool> option2 && !_dataSource.GlobalOptions.GetOption(option2)) 574(languageName == null || !_dataSource.GlobalOptions.GetOption(perLanguageOption, languageName))) 580await _dataSource.ProduceTagsAsync(context, cancellationToken).ConfigureAwait(false); 678if (!_dataSource.TagEquals(latest.Tag, previous.Tag)) 711_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 723_dataSource.ComputeInitialTagsSynchronously(buffer) && 727tagTrees = _dataSource.ThreadingContext.JoinableTaskFactory.Run(() => 728this.RecomputeTagsAsync(highPriority: true, _dataSource.SupportsFrozenPartialSemantics, calledFromJtfRun: true, _disposalTokenSource.Token)); 743_dataSource.ThreadingContext.ThrowIfNotOnUIThread();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ReferenceCounting.cs (1)
26{_dataSource.StackTrace}
Tagging\AbstractAsynchronousTaggerProvider.TagSource_TagsChanged.cs (1)
63_dataSource.BeforeTagsChanged(snapshot);