28 instantiations of MultiDictionary
Microsoft.CodeAnalysis.CSharp.Features (1)
AbstractAssignOutParametersCodeFixProvider.cs (1)
105var result = new MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>();
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Editing\CSharpImportAdder.cs (2)
89= new(); 102= new();
Microsoft.CodeAnalysis.Features (9)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (1)
72var dictionary = new MultiDictionary<string, string>(syntaxFactsService.StringComparer);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionCacheEntry.cs (1)
45_mapBuilder = new MultiDictionary<string, DeclaredSymbolInfo>(comparer);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (3)
356var builder = new MultiDictionary<ITypeSymbol, IMethodSymbol>(); 436var results = new MultiDictionary<string, (string, string)>(); 461var results = new MultiDictionary<string, (string, string)>();
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
208var tagMap = new MultiDictionary<Document, HighlightSpan>();
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
455var result = new MultiDictionary<DocumentId, IMethodSymbol>();
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
320var result = new MultiDictionary<DocumentId, IPropertySymbol>();
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
159var results = new MultiDictionary<double, string>();
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Editing\VisualBasicImportAdder.vb (3)
108_importedTypesAndNamespaces = New MultiDictionary(Of (name As String, arity As Integer), INamespaceSymbol)(Me) 109_importedMembers = New MultiDictionary(Of String, INamespaceSymbol)(VisualBasicSyntaxFacts.Instance.StringComparer) 110_importedExtensionMethods = New MultiDictionary(Of String, INamespaceSymbol)(VisualBasicSyntaxFacts.Instance.StringComparer)
Microsoft.CodeAnalysis.Workspaces (10)
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (5)
51var classesThatMayDeriveFromSystemObject = new MultiDictionary<Document, DeclaredSymbolInfo>(); 52var valueTypes = new MultiDictionary<Document, DeclaredSymbolInfo>(); 53var enums = new MultiDictionary<Document, DeclaredSymbolInfo>(); 54var delegates = new MultiDictionary<Document, DeclaredSymbolInfo>(); 56var namedTypes = new MultiDictionary<string, (Document, DeclaredSymbolInfo)>(
FindSymbols\SymbolTree\SymbolTreeInfo.cs (1)
109new MultiDictionary<string, ExtensionMethodInfo>());
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
260private readonly MultiDictionary<MetadataNode, ParameterTypeInfo> _extensionMethodToParameterTypeInfo = new(); 326var receiverTypeNameToExtensionMethodMap = new MultiDictionary<string, ExtensionMethodInfo>();
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
229receiverTypeNameToExtensionMethodMap = new MultiDictionary<string, ExtensionMethodInfo>();
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
21private static readonly SimplePool<MultiDictionary<string, INamespaceOrTypeSymbol>> s_symbolMapPool = new(() => new());
Microsoft.VisualStudio.LanguageServices (3)
InheritanceMargin\InheritanceMarginHelpers.cs (1)
21private static readonly ObjectPool<MultiDictionary<string, InheritanceTargetItem>> s_pool = new(() => new());
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
665var filePathToMappedTextChanges = new MultiDictionary<string, (TextChange TextChange, ProjectId ProjectId)>();
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
55= new();
91 references to MultiDictionary
Microsoft.CodeAnalysis.CSharp.Features (6)
AbstractAssignOutParametersCodeFixProvider.cs (4)
95private static async Task<MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>> GetUnassignedParametersAsync( 105var result = new MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol>)>(); 139var unassignedParameters = await GetUnassignedParametersAsync( 151MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values,
AssignOutParametersAboveReturnCodeFixProvider.cs (1)
37MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values,
AssignOutParametersAtStartCodeFixProvider.cs (1)
61MultiDictionary<SyntaxNode, (SyntaxNode exprOrStatement, ImmutableArray<IParameterSymbol> unassignedParameters)>.ValueSet values,
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Editing\CSharpImportAdder.cs (2)
88private readonly MultiDictionary<(string name, int arity), INamespaceSymbol> _importedTypes 101private readonly MultiDictionary<string, INamespaceSymbol> _importedExtensionMethods
Microsoft.CodeAnalysis.Features (36)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (5)
50var aliasTargetNamespaceToTypeNameMap = GetAliasTypeDictionary(completionContext.Document, syntaxContext, cancellationToken); 66private MultiDictionary<string, string> GetAliasTypeDictionary( 72var dictionary = new MultiDictionary<string, string>(syntaxFactsService.StringComparer); 122MultiDictionary<string, string> aliasTargetNamespaceToTypeNameMap, 142MultiDictionary<string, string> aliasTargetNamespaceToTypeNameMap)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionCacheEntry.cs (3)
19public readonly MultiDictionary<string, DeclaredSymbolInfo> ReceiverTypeNameToExtensionMethodMap { get; } 26MultiDictionary<string, DeclaredSymbolInfo> receiverTypeNameToExtensionMethodMap) 38private readonly MultiDictionary<string, DeclaredSymbolInfo> _mapBuilder;
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (13)
180var filter = CreateAggregatedFilter(cacheEntry); 185var matchingMethodSymbols = GetPotentialMatchingSymbolsFromAssembly( 226var filter = CreateAggregatedFilter(symbolInfo); 229var matchingMethodSymbols = GetPotentialMatchingSymbolsFromAssembly(assembly, filter, internalsVisible, cancellationToken); 235MultiDictionary<ITypeSymbol, IMethodSymbol> matchingMethodSymbols, 307MultiDictionary<ITypeSymbol, IMethodSymbol> matchingMethodSymbols, 350private MultiDictionary<ITypeSymbol, IMethodSymbol> GetPotentialMatchingSymbolsFromAssembly( 352MultiDictionary<string, (string methodName, string receiverTypeName)> extensionMethodFilter, 356var builder = new MultiDictionary<ITypeSymbol, IMethodSymbol>(); 434private MultiDictionary<string, (string methodName, string receiverTypeName)> CreateAggregatedFilter(ExtensionMethodImportCompletionCacheEntry syntaxIndex) 436var results = new MultiDictionary<string, (string, string)>(); 459private MultiDictionary<string, (string methodName, string receiverTypeName)> CreateAggregatedFilter(SymbolTreeInfo symbolInfo) 461var results = new MultiDictionary<string, (string, string)>();
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
208var tagMap = new MultiDictionary<Document, HighlightSpan>(); 293private static async Task AddLocationSpanAsync(Location location, Solution solution, HashSet<DocumentSpan> spanSet, MultiDictionary<Document, HighlightSpan> tagList, HighlightSpanKind kind, CancellationToken cancellationToken)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (7)
326var getDefinitionsByDocumentId = await GetDefinitionsByDocumentIdAsync(originalSolution, getMethodReferences, cancellationToken).ConfigureAwait(false); 327var setDefinitionsByDocumentId = await GetDefinitionsByDocumentIdAsync(originalSolution, setMethodReferences, cancellationToken).ConfigureAwait(false); 349MultiDictionary<DocumentId, IMethodSymbol>.ValueSet originalGetDefinitions, 350MultiDictionary<DocumentId, IMethodSymbol>.ValueSet originalSetDefinitions, 406MultiDictionary<DocumentId, IMethodSymbol>.ValueSet originalDefinitions, 450private static async Task<MultiDictionary<DocumentId, IMethodSymbol>> GetDefinitionsByDocumentIdAsync( 455var result = new MultiDictionary<DocumentId, IMethodSymbol>();
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (5)
301var definitionsByDocumentId = await GetDefinitionsByDocumentIdAsync(originalSolution, references, cancellationToken).ConfigureAwait(false); 315private static async Task<MultiDictionary<DocumentId, IPropertySymbol>> GetDefinitionsByDocumentIdAsync( 320var result = new MultiDictionary<DocumentId, IPropertySymbol>(); 346MultiDictionary<DocumentId, IPropertySymbol>.ValueSet originalDefinitions, 400MultiDictionary<DocumentId, IPropertySymbol>.ValueSet originalDefinitions,
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
159var results = new MultiDictionary<double, string>();
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Editing\VisualBasicImportAdder.vb (3)
74Private ReadOnly _importedTypesAndNamespaces As MultiDictionary(Of (name As String, arity As Integer), INamespaceSymbol) 81Private ReadOnly _importedMembers As MultiDictionary(Of String, INamespaceSymbol) 87Private ReadOnly _importedExtensionMethods As MultiDictionary(Of String, INamespaceSymbol)
Microsoft.CodeAnalysis.Workspaces (37)
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
243MultiDictionary<Document, DeclaredSymbolInfo> documentToInfos,
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (15)
21public readonly MultiDictionary<Document, DeclaredSymbolInfo> ClassesAndRecordsThatMayDeriveFromSystemObject; 22public readonly MultiDictionary<Document, DeclaredSymbolInfo> ValueTypes; 23public readonly MultiDictionary<Document, DeclaredSymbolInfo> Enums; 24public readonly MultiDictionary<Document, DeclaredSymbolInfo> Delegates; 25public readonly MultiDictionary<string, (Document, DeclaredSymbolInfo)> NamedTypes; 27public ProjectIndex(MultiDictionary<Document, DeclaredSymbolInfo> classesAndRecordsThatMayDeriveFromSystemObject, MultiDictionary<Document, DeclaredSymbolInfo> valueTypes, MultiDictionary<Document, DeclaredSymbolInfo> enums, MultiDictionary<Document, DeclaredSymbolInfo> delegates, MultiDictionary<string, (Document, DeclaredSymbolInfo)> namedTypes) 51var classesThatMayDeriveFromSystemObject = new MultiDictionary<Document, DeclaredSymbolInfo>(); 52var valueTypes = new MultiDictionary<Document, DeclaredSymbolInfo>(); 53var enums = new MultiDictionary<Document, DeclaredSymbolInfo>(); 54var delegates = new MultiDictionary<Document, DeclaredSymbolInfo>(); 56var namedTypes = new MultiDictionary<string, (Document, DeclaredSymbolInfo)>(
FindSymbols\SymbolTree\SymbolTreeInfo.cs (6)
64private readonly MultiDictionary<string, ExtensionMethodInfo>? _receiverTypeNameToExtensionMethodMap; 66public MultiDictionary<string, ExtensionMethodInfo>.ValueSet GetExtensionMethodInfoForReceiverType(string typeName) 69: new MultiDictionary<string, ExtensionMethodInfo>.ValueSet(null, null); 80MultiDictionary<string, ExtensionMethodInfo>? receiverTypeNameToExtensionMethodMap) 92MultiDictionary<string, ExtensionMethodInfo>? receiverTypeNameToExtensionMethodMap) 436MultiDictionary<string, ExtensionMethodInfo>? receiverTypeNameToExtensionMethodMap)
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (2)
31public readonly MultiDictionary<MetadataNode, ParameterTypeInfo>.ValueSet ParameterTypeInfos; 33public BuilderNode(string name, int parentIndex, MultiDictionary<MetadataNode, ParameterTypeInfo>.ValueSet parameterTypeInfos = default)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (4)
260private readonly MultiDictionary<MetadataNode, ParameterTypeInfo> _extensionMethodToParameterTypeInfo = new(); 326var receiverTypeNameToExtensionMethodMap = new MultiDictionary<string, ExtensionMethodInfo>(); 730private readonly ImmutableArray<BuilderNode> GenerateUnsortedNodes(MultiDictionary<string, ExtensionMethodInfo> receiverTypeNameToMethodMap) 740MultiDictionary<string, ExtensionMethodInfo> receiverTypeNameToMethodMap,
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
220MultiDictionary<string, ExtensionMethodInfo>? receiverTypeNameToExtensionMethodMap;
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (7)
21private static readonly SimplePool<MultiDictionary<string, INamespaceOrTypeSymbol>> s_symbolMapPool = new(() => new()); 23private static MultiDictionary<string, INamespaceOrTypeSymbol> AllocateSymbolMap() 26private static void FreeSymbolMap(MultiDictionary<string, INamespaceOrTypeSymbol> symbolMap) 125var symbolMap = AllocateSymbolMap(); 150MultiDictionary<string, INamespaceOrTypeSymbol>.ValueSet symbolsWithSameName, 159var symbolMap = AllocateSymbolMap(); 201private static void AddChildNamespacesAndTypes(INamespaceOrTypeSymbol symbol, MultiDictionary<string, INamespaceOrTypeSymbol> symbolMap)
MultiDictionary.cs (1)
15internal sealed class MultiDictionary<K, V> : IEnumerable<KeyValuePair<K, MultiDictionary<K, V>.ValueSet>>
Microsoft.VisualStudio.LanguageServices (7)
InheritanceMargin\InheritanceMarginHelpers.cs (3)
21private static readonly ObjectPool<MultiDictionary<string, InheritanceTargetItem>> s_pool = new(() => new()); 104var nameToTargets = s_pool.Allocate(); 154MultiDictionary<string, InheritanceTargetItem> nameToTargets)
ProjectSystem\VisualStudioWorkspaceImpl.cs (3)
648var mappedChanges = _threadingContext.JoinableTaskFactory.Run(() => GetMappedTextChanges(solutionChanges)); 663async Task<MultiDictionary<string, (TextChange TextChange, ProjectId ProjectId)>> GetMappedTextChanges(SolutionChanges solutionChanges) 665var filePathToMappedTextChanges = new MultiDictionary<string, (TextChange TextChange, ProjectId ProjectId)>();
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
54private readonly MultiDictionary<string, IReferenceCountedDisposable<ICacheEntry<IVsHierarchy, HierarchyEventSink>>> _watchedHierarchiesForDocumentMoniker