1 write to _state
Microsoft.CodeAnalysis.EditorFeatures (1)
FindUsages\BufferedFindUsagesContext.cs (1)
113
_state
= null;
20 references to _state
Microsoft.CodeAnalysis.EditorFeatures (20)
FindUsages\BufferedFindUsagesContext.cs (20)
51
[MemberNotNullWhen(false, nameof(
_state
))]
65
return
_state
.Message;
72
return
_state
.InformationalMessage;
79
return
_state
.SearchTitle;
86
return
_state
.Definitions.ToImmutable();
96
await presenterContext.ProgressTracker.AddItemsAsync(
_state
.TotalItemCount, cancellationToken).ConfigureAwait(false);
97
await presenterContext.ProgressTracker.ItemsCompletedAsync(
_state
.ItemsCompleted, cancellationToken).ConfigureAwait(false);
99
if (
_state
.SearchTitle != null)
100
await presenterContext.SetSearchTitleAsync(
_state
.SearchTitle, cancellationToken).ConfigureAwait(false);
102
if (
_state
.Message != null)
103
await presenterContext.ReportNoResultsAsync(
_state
.Message, cancellationToken).ConfigureAwait(false);
105
if (
_state
.InformationalMessage != null)
106
await presenterContext.ReportMessageAsync(
_state
.InformationalMessage, NotificationSeverity.Information, cancellationToken).ConfigureAwait(false);
108
foreach (var definition in
_state
.Definitions)
129
_state
.TotalItemCount += count;
142
_state
.ItemsCompleted += count;
159
_state
.Message = message;
172
_state
.InformationalMessage = message;
185
_state
.SearchTitle = title;
198
_state
.Definitions.Add(definition);