2 instantiations of ValueTrackedItem
Microsoft.CodeAnalysis.Features (2)
ValueTracking\SerializableValueTrackedItem.cs (1)
65
return new
ValueTrackedItem
(SymbolKey, sourceText, TextSpan, DocumentId, symbolResolution.Symbol.GetGlyph(), parent);
ValueTracking\ValueTrackedItem.cs (1)
57
return new
ValueTrackedItem
(
44 references to ValueTrackedItem
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
ValueTracking\AbstractBaseValueTrackingTests.cs (10)
27
internal static async Task<ImmutableArray<
ValueTrackedItem
>> GetTrackedItemsAsync(TestWorkspace testWorkspace, CancellationToken cancellationToken = default)
37
internal static async Task<ImmutableArray<
ValueTrackedItem
>> GetTrackedItemsAsync(TestWorkspace testWorkspace,
ValueTrackedItem
item, CancellationToken cancellationToken = default)
43
internal static async Task<ImmutableArray<
ValueTrackedItem
>> ValidateItemsAsync(TestWorkspace testWorkspace, (int line, string text)[] itemInfo, CancellationToken cancellationToken = default)
56
internal static async Task<ImmutableArray<
ValueTrackedItem
>> ValidateChildrenAsync(TestWorkspace testWorkspace,
ValueTrackedItem
item, (int line, string text)[] childInfo, CancellationToken cancellationToken = default)
69
internal static async Task ValidateChildrenEmptyAsync(TestWorkspace testWorkspace,
ValueTrackedItem
item, CancellationToken cancellationToken = default)
75
internal static async Task ValidateChildrenEmptyAsync(TestWorkspace testWorkspace, IEnumerable<
ValueTrackedItem
> items, CancellationToken cancellationToken = default)
77
foreach (
var
item in items)
83
internal static void ValidateItem(
ValueTrackedItem
item, int line, string? text = null)
ValueTracking\CSharpValueTrackingTests.cs (1)
376
foreach (
var
child in children)
Microsoft.CodeAnalysis.Features (26)
ValueTracking\IValueTrackingService.cs (3)
16
Task<ImmutableArray<
ValueTrackedItem
>> TrackValueSourceAsync(TextSpan selection, Document document, CancellationToken cancellationToken);
17
Task<ImmutableArray<
ValueTrackedItem
>> TrackValueSourceAsync(Solution solution,
ValueTrackedItem
previousTrackedItem, CancellationToken cancellationToken);
ValueTracking\SerializableValueTrackedItem.cs (3)
41
public static SerializableValueTrackedItem Dehydrate(Solution solution,
ValueTrackedItem
valueTrackedItem, CancellationToken cancellationToken)
52
public async ValueTask<
ValueTrackedItem
> RehydrateAsync(Solution solution, CancellationToken cancellationToken)
60
var
parent = Parent is null ? null : await Parent.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTrackedItem.cs (4)
20
public
ValueTrackedItem
? Parent { get; }
33
ValueTrackedItem
? parent)
49
public static async ValueTask<
ValueTrackedItem
?> TryCreateAsync(Solution solution, Location location, ISymbol symbol,
ValueTrackedItem
? parent = null, CancellationToken cancellationToken = default)
ValueTracking\ValueTracker.cs (2)
76
ValueTrackedItem
previousTrackedItem,
322
private static async Task<ISymbol?> GetSymbolAsync(
ValueTrackedItem
? item, Solution solution, CancellationToken cancellationToken)
ValueTracking\ValueTracker.OperationCollector.cs (1)
205
foreach (
var
item in items)
ValueTracking\ValueTrackingProgressCollector.cs (8)
13
internal class ValueTrackingProgressCollector : IProgress<
ValueTrackedItem
>
16
private readonly Stack<
ValueTrackedItem
> _items = new();
18
public event EventHandler<
ValueTrackedItem
>? OnNewItem;
20
internal
ValueTrackedItem
? Parent { get; set; }
22
public void Report(
ValueTrackedItem
item)
32
public ImmutableArray<
ValueTrackedItem
> GetItems()
42
var
item = await
ValueTrackedItem
.TryCreateAsync(solution, location, symbol, Parent, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTrackingService.cs (5)
28
public async Task<ImmutableArray<
ValueTrackedItem
>> TrackValueSourceAsync(
46
return ImmutableArray<
ValueTrackedItem
>.Empty;
58
public async Task<ImmutableArray<
ValueTrackedItem
>> TrackValueSourceAsync(
60
ValueTrackedItem
previousTrackedItem,
76
return ImmutableArray<
ValueTrackedItem
>.Empty;
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\ValueTracking\RemoteValueTrackingService.cs (1)
56
var
previousItem = await previousTrackedItem.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices (6)
ValueTracking\ValueTrackedTreeItemViewModel.cs (3)
29
private readonly
ValueTrackedItem
_trackedItem;
45
ValueTrackedItem
trackedItem,
93
ValueTrackedItem
item,
ValueTracking\ValueTrackingCommandHandler.cs (3)
116
private async Task ShowToolWindowAsync(ITextView textView, Document document, ImmutableArray<
ValueTrackedItem
> items, CancellationToken cancellationToken)
135
foreach (
var
child in children)
145
foreach (
var
child in children)