6 instantiations of MultiDictionary
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (5)
48
var classesThatMayDeriveFromSystemObject = new
MultiDictionary
<DocumentId, DeclaredSymbolInfo>();
49
var valueTypes = new
MultiDictionary
<DocumentId, DeclaredSymbolInfo>();
50
var enums = new
MultiDictionary
<DocumentId, DeclaredSymbolInfo>();
51
var delegates = new
MultiDictionary
<DocumentId, DeclaredSymbolInfo>();
53
var namedTypes = new
MultiDictionary
<string, (DocumentId, DeclaredSymbolInfo)>(
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
323
var receiverTypeNameToExtensionMethodMap = new
MultiDictionary
<string, ExtensionMethodInfo>();
37 references to MultiDictionary
Microsoft.CodeAnalysis.Workspaces (37)
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
252
MultiDictionary
<DocumentId, DeclaredSymbolInfo> documentToInfos,
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (15)
18
MultiDictionary
<DocumentId, DeclaredSymbolInfo> classesAndRecordsThatMayDeriveFromSystemObject,
19
MultiDictionary
<DocumentId, DeclaredSymbolInfo> valueTypes,
20
MultiDictionary
<DocumentId, DeclaredSymbolInfo> enums,
21
MultiDictionary
<DocumentId, DeclaredSymbolInfo> delegates,
22
MultiDictionary
<string, (DocumentId, DeclaredSymbolInfo)> namedTypes)
26
public readonly
MultiDictionary
<DocumentId, DeclaredSymbolInfo> ClassesAndRecordsThatMayDeriveFromSystemObject = classesAndRecordsThatMayDeriveFromSystemObject;
27
public readonly
MultiDictionary
<DocumentId, DeclaredSymbolInfo> ValueTypes = valueTypes;
28
public readonly
MultiDictionary
<DocumentId, DeclaredSymbolInfo> Enums = enums;
29
public readonly
MultiDictionary
<DocumentId, DeclaredSymbolInfo> Delegates = delegates;
30
public readonly
MultiDictionary
<string, (DocumentId, DeclaredSymbolInfo)> NamedTypes = namedTypes;
48
var
classesThatMayDeriveFromSystemObject = new MultiDictionary<DocumentId, DeclaredSymbolInfo>();
49
var
valueTypes = new MultiDictionary<DocumentId, DeclaredSymbolInfo>();
50
var
enums = new MultiDictionary<DocumentId, DeclaredSymbolInfo>();
51
var
delegates = new MultiDictionary<DocumentId, DeclaredSymbolInfo>();
53
var
namedTypes = new MultiDictionary<string, (DocumentId, DeclaredSymbolInfo)>(
FindSymbols\SymbolTree\SymbolTreeInfo.cs (6)
62
private readonly
MultiDictionary
<string, ExtensionMethodInfo>? _receiverTypeNameToExtensionMethodMap;
64
public
MultiDictionary
<string, ExtensionMethodInfo>.ValueSet GetExtensionMethodInfoForReceiverType(string typeName)
67
: new
MultiDictionary
<string, ExtensionMethodInfo>.ValueSet(null, null);
77
MultiDictionary
<string, ExtensionMethodInfo>? receiverTypeNameToExtensionMethodMap)
90
MultiDictionary
<string, ExtensionMethodInfo>? receiverTypeNameToExtensionMethodMap)
461
MultiDictionary
<string, ExtensionMethodInfo>? receiverTypeNameToExtensionMethodMap)
FindSymbols\SymbolTree\SymbolTreeInfo.Node.cs (2)
24
private readonly struct BuilderNode(string name, int parentIndex,
MultiDictionary
<MetadataNode, ParameterTypeInfo>.ValueSet parameterTypeInfos = default)
30
public readonly
MultiDictionary
<MetadataNode, ParameterTypeInfo>.ValueSet ParameterTypeInfos = parameterTypeInfos;
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (4)
269
private readonly
MultiDictionary
<MetadataNode, ParameterTypeInfo> _extensionMethodToParameterTypeInfo = [];
323
var
receiverTypeNameToExtensionMethodMap = new MultiDictionary<string, ExtensionMethodInfo>();
727
private readonly ImmutableArray<BuilderNode> GenerateUnsortedNodes(
MultiDictionary
<string, ExtensionMethodInfo> receiverTypeNameToMethodMap)
737
MultiDictionary
<string, ExtensionMethodInfo> receiverTypeNameToMethodMap,
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
227
MultiDictionary
<string, ExtensionMethodInfo>? receiverTypeNameToExtensionMethodMap;
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (7)
19
private static readonly ObjectPool<
MultiDictionary
<string, INamespaceOrTypeSymbol>> s_symbolMapPool = new(() => []);
21
private static
MultiDictionary
<string, INamespaceOrTypeSymbol> AllocateSymbolMap()
24
private static void FreeSymbolMap(
MultiDictionary
<string, INamespaceOrTypeSymbol> symbolMap)
126
var
symbolMap = AllocateSymbolMap();
151
MultiDictionary
<string, INamespaceOrTypeSymbol>.ValueSet symbolsWithSameName,
160
var
symbolMap = AllocateSymbolMap();
202
private static void AddChildNamespacesAndTypes(INamespaceOrTypeSymbol symbol,
MultiDictionary
<string, INamespaceOrTypeSymbol> symbolMap)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
15
internal sealed class MultiDictionary<K, V> : IEnumerable<KeyValuePair<K,
MultiDictionary
<K, V>.ValueSet>>