1 write to _dataSource
Microsoft.CodeAnalysis.EditorFeatures (1)
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (1)
154
_dataSource
= dataSource;
60 references to _dataSource
Microsoft.CodeAnalysis.EditorFeatures (60)
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (25)
176
if (
_dataSource
.AddedTagNotificationDelay == TaggerDelay.NearImmediate)
185
_dataSource
.AddedTagNotificationDelay.ComputeTimeDelay(),
200
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
217
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
220
_dataSource
.VisibilityTracker?.RegisterForVisibilityChanges(subjectBuffer, _onVisibilityChanged);
224
if (
_dataSource
.TextChangeBehavior != TaggerTextChangeBehavior.None)
229
if (
_dataSource
.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag))
234
nameof(
_dataSource
.CaretChangeBehavior) + " can only be specified for an " + nameof(IViewTaggerProvider));
250
_dataSource
.RemoveTagSource(_textView, _subjectBuffer);
260
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
265
if (
_dataSource
.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag))
271
if (
_dataSource
.TextChangeBehavior != TaggerTextChangeBehavior.None)
278
_dataSource
.VisibilityTracker?.UnregisterForVisibilityChanges(_subjectBuffer, _onVisibilityChanged);
283
=>
_dataSource
.VisibilityTracker == null ||
_dataSource
.VisibilityTracker.IsVisible(_subjectBuffer);
287
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
298
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
319
Contract.ThrowIfTrue(
_dataSource
.Options.Any(o => o is not Option2<bool> and not PerLanguageOption2<bool>), "All options must be Option2<bool> or PerLanguageOption2<bool>");
321
var eventSource =
_dataSource
.CreateEventSource(_textView, _subjectBuffer);
325
if (
_dataSource
.Options.IsEmpty &&
_dataSource
.FeatureOptions.IsEmpty)
332
TaggerEventSources.OnGlobalOptionChanged(
_dataSource
.GlobalOptions, option =>
333
_dataSource
.Options.Contains(option) ||
_dataSource
.FeatureOptions.Contains(option)));
338
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_IEqualityComparer.cs (1)
22
return x.Span == y.Span &&
_dataSource
.TagEquals(x.Tag, y.Tag);
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (32)
37
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
39
Debug.Assert(
_dataSource
.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag));
41
var caret =
_dataSource
.GetCaretPoint(_textView, _subjectBuffer);
55
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
71
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
77
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
79
if (
_dataSource
.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveAllTags))
86
if (
_dataSource
.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveTagsThatIntersectEdits))
136
@this.
_dataSource
.SpanTrackingMode,
179
EnqueueWork(highPriority,
_dataSource
.SupportsFrozenPartialSemantics, nonFrozenComputationToken: null);
185
_dataSource
.CancelOnNewWork);
200
if (!frozenPartialSemantics &&
_dataSource
.SupportsFrozenPartialSemantics)
298
var valueOpt = await
_dataSource
.MainThreadManager.PerformWorkOnMainThreadAsync(
325
await
_dataSource
.VisibilityTracker.DelayWhileNonVisibleAsync(
326
_dataSource
.ThreadingContext,
_dataSource
.AsyncListener, _subjectBuffer, DelayTimeSpan.NonFocus, cancellationToken).NoThrowAwaitable(captureContext: true);
397
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
406
var caretPosition =
_dataSource
.GetCaretPoint(_textView, _subjectBuffer);
409
if (!
_dataSource
.TryAddSpansToTag(_textView, _subjectBuffer, ref spansToTag.AsRef()))
530
return new TagSpanIntervalTree<TTag>(newTags_safeToMutate[0].Span.Snapshot,
_dataSource
.SpanTrackingMode, newTags_safeToMutate);
548
snapshot,
_dataSource
.SpanTrackingMode, newTags_safeToMutate);
570
snapshot,
_dataSource
.SpanTrackingMode, newTags_safeToMutate);
582
foreach (var option in
_dataSource
.Options)
584
if (option is Option2<bool> option2 && !
_dataSource
.GlobalOptions.GetOption(option2))
588
(languageName == null || !
_dataSource
.GlobalOptions.GetOption(perLanguageOption, languageName)))
594
await
_dataSource
.ProduceTagsAsync(context, cancellationToken).ConfigureAwait(false);
692
if (!
_dataSource
.TagEquals(latest.Value.Tag, previous.Value.Tag))
725
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
737
_dataSource
.ComputeInitialTagsSynchronously(buffer) &&
741
tagTrees =
_dataSource
.ThreadingContext.JoinableTaskFactory.Run(() =>
742
this.RecomputeTagsAsync(highPriority: true,
_dataSource
.SupportsFrozenPartialSemantics, calledFromJtfRun: true, _disposalTokenSource.Token));
757
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ReferenceCounting.cs (1)
25
{
_dataSource
.StackTrace}
Tagging\AbstractAsynchronousTaggerProvider.TagSource_TagsChanged.cs (1)
63
_dataSource
.BeforeTagsChanged(snapshot);