36 references to SymbolGroup
Microsoft.CodeAnalysis.Workspaces (36)
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (14)
36private static readonly ObjectPool<Dictionary<ISymbol, SymbolGroup>> s_symbolToGroupPool = new(() => new(MetadataUnifyingEquivalenceComparer.Instance)); 126private async IAsyncEnumerable<(Project project, ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols)> GetProjectsAndSymbolsToSearchSeriallyAsync( 129Dictionary<ISymbol, SymbolGroup> symbolToGroup, 164private async Task<ImmutableArray<(ISymbol symbol, SymbolGroup group)>> ReportGroupsSeriallyAsync( 165ImmutableArray<ISymbol> symbols, Dictionary<ISymbol, SymbolGroup> symbolToGroup, CancellationToken cancellationToken) 167var result = new FixedSizeArrayBuilder<(ISymbol symbol, SymbolGroup group)>(symbols.Length); 176private async ValueTask<SymbolGroup> ReportGroupSeriallyAsync( 177ISymbol symbol, Dictionary<ISymbol, SymbolGroup> symbolToGroup, CancellationToken cancellationToken) 185if (!symbolToGroup.TryGetValue(symbol, out var group)) 217Project project, ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols, Action<Reference> onReferenceFound, CancellationToken cancellationToken) 220using var _2 = PooledDictionary<Document, Dictionary<ISymbol, SymbolGroup>>.GetInstance(out var documentToSymbolsWithin); 275Dictionary<ISymbol, SymbolGroup> symbolsToSearchFor, 320ISymbol symbolToSearchFor, SymbolGroup symbolGroup, FindReferencesDocumentState state, Action<Reference> onReferenceFound) 344ImmutableArray<(ISymbol symbol, SymbolGroup group)> allSymbols,
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (7)
75async ValueTask PerformSearchInProjectSeriallyAsync(ImmutableArray<(ISymbol symbol, SymbolGroup group)> symbols, Project project) 100ImmutableArray<(ISymbol symbol, SymbolGroup group)> symbols, 121ISymbol symbol, SymbolGroup group, FindReferencesDocumentState state) 133async ValueTask DirectSymbolSearchAsync(ISymbol symbol, SymbolGroup group, FindReferencesDocumentState state) 164static async Task<ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>> ConvertLocationsAsync( 165FindReferencesSearchEngine @this, IAsyncEnumerable<FinderLocation> locations, ISymbol symbol, SymbolGroup group, CancellationToken cancellationToken) 167using var _ = ArrayBuilder<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>.GetInstance(out var result);
FindSymbols\FindReferences\NoOpStreamingFindReferencesProgress.cs (2)
30public ValueTask OnDefinitionFoundAsync(SymbolGroup group, CancellationToken cancellationToken) => default; 31public ValueTask OnReferencesFoundAsync(ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken) => default;
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (2)
42public ValueTask OnDefinitionFoundAsync(SymbolGroup group, CancellationToken cancellationToken) 57public ValueTask OnReferencesFoundAsync(ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken)
FindSymbols\IStreamingFindReferencesProgress.cs (5)
25internal sealed class SymbolGroup : IEquatable<SymbolGroup> 46=> obj is SymbolGroup group && Equals(group); 48public bool Equals(SymbolGroup? group) 76ValueTask OnDefinitionFoundAsync(SymbolGroup group, CancellationToken cancellationToken); 77ValueTask OnReferencesFoundAsync(ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken);
FindSymbols\StreamingProgressCollector.cs (2)
53public ValueTask OnDefinitionFoundAsync(SymbolGroup group, CancellationToken cancellationToken) 72ImmutableArray<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)> references, CancellationToken cancellationToken)
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (3)
27private readonly Dictionary<SerializableSymbolGroup, SymbolGroup> _groupMap = []; 72using var _ = ArrayBuilder<(SymbolGroup group, ISymbol symbol, ReferenceLocation location)>.GetInstance(references.Length, out var rehydrated); 76SymbolGroup? symbolGroup;
Remote\RemoteArguments.cs (1)
235public static SerializableSymbolGroup Dehydrate(Solution solution, SymbolGroup group, CancellationToken cancellationToken)