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 valueOpt = await _dataSource.MainThreadManager.PerformWorkOnMainThreadAsync( 324await _dataSource.VisibilityTracker.DelayWhileNonVisibleAsync( 325_dataSource.ThreadingContext, _dataSource.AsyncListener, _subjectBuffer, DelayTimeSpan.NonFocus, cancellationToken).NoThrowAwaitable(captureContext: true); 396_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 405var caretPosition = _dataSource.GetCaretPoint(_textView, _subjectBuffer); 408if (!_dataSource.TryAddSpansToTag(_textView, _subjectBuffer, ref spansToTag.AsRef())) 529return new TagSpanIntervalTree<TTag>(newTags_safeToMutate[0].Span.Snapshot, _dataSource.SpanTrackingMode, newTags_safeToMutate); 547snapshot, _dataSource.SpanTrackingMode, newTags_safeToMutate); 569snapshot, _dataSource.SpanTrackingMode, newTags_safeToMutate); 581foreach (var option in _dataSource.Options) 583if (option is Option2<bool> option2 && !_dataSource.GlobalOptions.GetOption(option2)) 587(languageName == null || !_dataSource.GlobalOptions.GetOption(perLanguageOption, languageName))) 593await _dataSource.ProduceTagsAsync(context, cancellationToken).ConfigureAwait(false); 691if (!_dataSource.TagEquals(latest.Value.Tag, previous.Value.Tag)) 724_dataSource.ThreadingContext.ThrowIfNotOnUIThread(); 736_dataSource.ComputeInitialTagsSynchronously(buffer) && 740tagTrees = _dataSource.ThreadingContext.JoinableTaskFactory.Run(() => 741this.RecomputeTagsAsync(highPriority: true, _dataSource.SupportsFrozenPartialSemantics, calledFromJtfRun: true, _disposalTokenSource.Token)); 756_dataSource.ThreadingContext.ThrowIfNotOnUIThread();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ReferenceCounting.cs (1)
26{_dataSource.StackTrace}
Tagging\AbstractAsynchronousTaggerProvider.TagSource_TagsChanged.cs (1)
63_dataSource.BeforeTagsChanged(snapshot);