30 references to Add
Microsoft.CodeAnalysis.CSharp.Features (1)
AbstractAssignOutParametersCodeFixProvider.cs (1)
127result.Add(container, (exprOrStatement, unassignedParameters));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Editing\CSharpImportAdder.cs (2)
133_importedTypes.Add((type.Name, type.Arity), ns); 140_importedExtensionMethods.Add(method.Name, ns);
Microsoft.CodeAnalysis.Features (9)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionProvider.cs (1)
110dictionary.Add(namespaceOfTarget, typeNameOfTarget);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionCacheEntry.cs (1)
62_mapBuilder.Add(receiverType, syntaxIndex.DeclaredSymbolInfos[index]);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (3)
394builder.Add(receiverType!, methodSymbol); 448results.Add(methodInfo.FullyQualifiedContainerName, (methodInfo.Name, receiverTypeName)); 473results.Add(methodInfo.FullyQualifiedContainerName, (methodInfo.Name, receiverTypeName));
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
299tagList.Add(span.Value.Document, new HighlightSpan(span.Value.SourceSpan, kind));
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
469result.Add(document.Id, definition);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
334result.Add(document.Id, definition);
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
175results.Add(matchCost, insertionText);
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
Editing\VisualBasicImportAdder.vb (4)
118_importedTypesAndNamespaces.Add((typeOrNamespace.Name, typeOrNamespace.GetArity()), ns) 125_importedExtensionMethods.Add(method.Name, ns) 135_importedTypesAndNamespaces.Add((moduleType.Name, moduleType.GetArity()), ns) 137_importedMembers.Add(member.Name, ns)
Microsoft.CodeAnalysis.Workspaces (11)
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (5)
68classesThatMayDeriveFromSystemObject.Add(document, info); 71enums.Add(document, info); 75valueTypes.Add(document, info); 78delegates.Add(document, info); 84namedTypes.Add(inheritanceName, (document, info));
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
389_extensionMethodToParameterTypeInfo.Add(childNode, definition.ReceiverTypeInfo); 766receiverTypeNameToMethodMap.Add(parameterTypeName, new ExtensionMethodInfo(fullyQualifiedContainerName, child.Name));
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (1)
241receiverTypeNameToExtensionMethodMap.Add(typeName, new ExtensionMethodInfo(containerName, name));
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (3)
132symbolMap.Add(globalNamespaceName, assembly.GlobalNamespace); 206symbolMap.Add(childNamespaceOrType.Name, childNamespaceOrType); 213symbolMap.Add(childType.Name, childType);
Microsoft.VisualStudio.LanguageServices (3)
InheritanceMargin\InheritanceMarginHelpers.cs (1)
112nameToTargets.Add(target.DisplayName, target);
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
681filePathToMappedTextChanges.Add(filePath, (textChange, projectChanges.ProjectId));
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (1)
208_watchedHierarchiesForDocumentMoniker.Add(moniker, _hierarchyEventSinkCache.GetOrCreate(hierarchyToWatch, static (h, self) => new HierarchyEventSink(h, self), this));