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