Implemented interface member:
199 references to Add
dotnet-format (2)
Analyzers\AnalyzerFormatter.cs (2)
308projectAnalyzers.Add(projectId, ImmutableArray<DiagnosticAnalyzer>.Empty); 355projectAnalyzers.Add(projectId, analyzers.ToImmutableArray());
GenerateDocumentationAndConfigFiles (9)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
64lvalueFlowCaptureIdBuilder.Add(flowCaptureReference.Id, captureKind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
133builder.Add(symbolSpecification.ID, name); 147builder.Add(namingStyle.ID, name); 175builder.Add(rule, $"{serializedNameMap[rule.SymbolSpecification.ID]}_should_be_{serializedNameMap[rule.NamingStyle.ID]}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
64builder.Add(alias.Target, alias);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
56result.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
148builder.Add(document, [.. diagnosticsForDocument]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
162builder.Add(document.Id, new SemanticModelReuseInfo(semanticModel, semanticModel, bodyNode, topLevelSemanticVersion)); 168builder.Add(linkedId, linkedReuseInfo);
ILLink.RoslynAnalyzer (1)
DataFlow\LValueFlowCaptureProvider.cs (1)
71lvalueFlowCaptureIdBuilder.Add(flowCaptureReference.Id, captureKind);
Microsoft.AspNetCore.App.Analyzers (16)
Http\HeaderDictionaryIndexerAnalyzer.cs (2)
172propertiesBuilder.Add("HeaderName", headerName); 173propertiesBuilder.Add("ResolvedPropertyName", propertyName);
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (5)
259properties.Add(StartKey, textChange.Span.Start.ToString(CultureInfo.InvariantCulture)); 260properties.Add(LengthKey, textChange.Span.Length.ToString(CultureInfo.InvariantCulture)); 261properties.Add(NewTextKey, textChange.NewText ?? string.Empty); 262properties.Add(DescriptionKey, embeddedItem.FullDescription); 266properties.Add(NewPositionKey, change.NewPosition.Value.ToString(CultureInfo.InvariantCulture));
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (4)
98propertiesBuilder.Add("RouteParameterName", unusedParameter.Name); 99propertiesBuilder.Add("RouteParameterPolicy", string.Join(string.Empty, unusedParameter.Policies)); 100propertiesBuilder.Add("RouteParameterIsOptional", unusedParameter.IsOptional.ToString(CultureInfo.InvariantCulture)); 101propertiesBuilder.Add("RouteParameterInsertIndex", parameterInsertIndex.ToString(CultureInfo.InvariantCulture));
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (5)
138properties.Add(StartKey, textChange.Span.Start.ToString(CultureInfo.InvariantCulture)); 139properties.Add(LengthKey, textChange.Span.Length.ToString(CultureInfo.InvariantCulture)); 140properties.Add(NewTextKey, textChange.NewText ?? string.Empty); 141properties.Add(DescriptionKey, embeddedItem.FullDescription); 145properties.Add(NewPositionKey, change.NewPosition.Value.ToString(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Converters\DictionaryAdapters\ImmutableDictionaryBufferAdapter.cs (1)
14buffer.Add(key, value);
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ImmutableDictionaryBufferAdapter.cs (1)
14buffer.Add(key, value);
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
PooledObjects\PooledDictionaryBuilder`2.cs (1)
56_builder.Add(key, value);
Microsoft.Build.Tasks.Git (1)
GitDataReader\GitReferenceResolver.cs (1)
170builder.Add(reference, objectId);
Microsoft.CodeAnalysis (21)
CommandLine\AnalyzerConfigSet.cs (3)
571_values.Add(section.Name, sectionDict); 590sectionDict.Add(key, (value, configPath, globalLevel)); 611_duplicates.Add(section.Name, duplicateDict);
CommandLine\CommonCompiler.cs (2)
1038builder.Add(syntaxTree, new DictionaryAnalyzerConfigOptions(options)); 1053builder.Add(additionalFiles[i], new DictionaryAnalyzerConfigOptions(options));
Compilation\SyntaxTreeOptionsProvider.cs (1)
65builder.Add(
DiagnosticAnalyzer\AnalysisResultBuilder.cs (4)
557perTreeBuilder.Add(diagnosticsByAnalyzer.Key, diagnostics); 562builder.Add(key, perTreeBuilder.ToImmutable()); 593builder.Add(diagnosticsByAnalyzer.Key, diagnostics); 618builder.Add(analyzer, telemetryInfo);
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1181mapBuilder.Add(diagnostic, new ProgrammaticSuppressionInfo(set.ToImmutableAndFree()));
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
841builder.Add(analyzer, actionCounts);
Emit\CommonPEModuleBuilder.cs (2)
1070builder.Add(entry.Key, entry.Value.GetAllMembers()); 1078builder.Add(entry.Key, entry.Value.ToImmutableArray<ISymbolInternal>());
InternalUtilities\ImmutableSetWithInsertionOrder`1.cs (1)
69builder.Add(value, nextElementValue);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (2)
348localFunctionsMap.Add(method, (result, operation, localFunctionsBefore++)); 407argument.map.Add(operation, (argument.region, argument.map.Count));
ReferenceManager\CommonReferenceManager.State.cs (1)
567lazyBuilder.Add(sourceIdentity, originalIdentity);
RuleSet\RuleSetProcessor.cs (1)
126specificOptions.Add(ruleId, action);
SourceGeneration\Nodes\GeneratorRunStateTable.cs (1)
68resultBuilder.Add(stepsByName.Key, stepsByName.Value.ToImmutableArrayOrEmpty());
SourceGeneration\Nodes\HostOutputNode.cs (1)
82context.HostOutputBuilder.Add(key, value);
Microsoft.CodeAnalysis.Analyzers (12)
MetaAnalyzers\CompareSymbolsCorrectlyAnalyzer.cs (1)
368builder.Add(methodName, methodTypeSymbols);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_IdRangeAndCategoryValidation.cs (2)
271builder.Add(category, default); 328builder.Add(category, infoList.ToImmutable());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
64lvalueFlowCaptureIdBuilder.Add(flowCaptureReference.Id, captureKind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
133builder.Add(symbolSpecification.ID, name); 147builder.Add(namingStyle.ID, name); 175builder.Add(rule, $"{serializedNameMap[rule.SymbolSpecification.ID]}_should_be_{serializedNameMap[rule.NamingStyle.ID]}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
64builder.Add(alias.Target, alias);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
56result.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
148builder.Add(document, [.. diagnosticsForDocument]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
162builder.Add(document.Id, new SemanticModelReuseInfo(semanticModel, semanticModel, bodyNode, topLevelSemanticVersion)); 168builder.Add(linkedId, linkedReuseInfo);
Microsoft.CodeAnalysis.AnalyzerUtilities (13)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\DefaultPointsToValueGenerator.cs (1)
52_defaultPointsToValueMapBuilder.Add(analysisEntity, value);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.PointsToDataFlowOperationVisitor.cs (1)
76builder.Add(key, valueBuilder.ToImmutable());
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertyMapperCollection.cs (1)
63builder.Add(p.PropertyName, (indexToAdd, p));
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.PropertySetDataFlowOperationVisitor.cs (2)
630this._hazardousUsageBuilder.Add(key, result); 683this._hazardousUsageBuilder.Add(kvp.Key, kvp.Value);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (2)
566builder.Add(parameter, analysisEntity); 2626builder.Add(capturedVariable, capturedEntity.InstanceLocation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
64lvalueFlowCaptureIdBuilder.Add(flowCaptureReference.Id, captureKind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
133builder.Add(symbolSpecification.ID, name); 147builder.Add(namingStyle.ID, name); 175builder.Add(rule, $"{serializedNameMap[rule.SymbolSpecification.ID]}_should_be_{serializedNameMap[rule.NamingStyle.ID]}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
64builder.Add(alias.Target, alias);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
56result.Add(key, items.ToImmutableAndFree());
Microsoft.CodeAnalysis.CodeStyle (15)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (4)
97properties.Add(RedundantEqualityConstants.RedundantSide, RedundantEqualityConstants.Right); 99properties.Add(RedundantEqualityConstants.Negate, RedundantEqualityConstants.Negate); 103properties.Add(RedundantEqualityConstants.RedundantSide, RedundantEqualityConstants.Left); 105properties.Add(RedundantEqualityConstants.Negate, RedundantEqualityConstants.Negate);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
36builder.Add(targetScope.ToString(), targetScope);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (4)
171propertiesBuilder.Add(UnusedValuePreferenceKey, preference.ToString()); 174propertiesBuilder.Add(IsUnusedLocalAssignmentKey, string.Empty); 179propertiesBuilder.Add(IsRemovableAssignmentKey, string.Empty); 182builder.Add((preference, isUnusedLocalAssignment, isRemovableAssignment), propertiesBuilder.ToImmutable());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
64lvalueFlowCaptureIdBuilder.Add(flowCaptureReference.Id, captureKind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
133builder.Add(symbolSpecification.ID, name); 147builder.Add(namingStyle.ID, name); 175builder.Add(rule, $"{serializedNameMap[rule.SymbolSpecification.ID]}_should_be_{serializedNameMap[rule.NamingStyle.ID]}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
64builder.Add(alias.Target, alias);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
56result.Add(key, items.ToImmutableAndFree());
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
148builder.Add(document, [.. diagnosticsForDocument]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
162builder.Add(document.Id, new SemanticModelReuseInfo(semanticModel, semanticModel, bodyNode, topLevelSemanticVersion)); 168builder.Add(linkedId, linkedReuseInfo);
Microsoft.CodeAnalysis.CSharp (12)
Binder\DecisionDagBuilder.cs (1)
1296newRemainingValues.Add(dagTemp, newExistingValuesForTemp);
Binder\Imports.cs (1)
78expandedAliasesBuilder.Add(name, new AliasAndUsingDirective(directive.Alias.ToNewSubmission(newSubmission), directive.UsingDirective));
BoundTree\NullabilityRewriter.cs (4)
254_remappedSymbols.Add(lambda, updatedLambda); 259_remappedSymbols.Add(lambda.Parameters[i], updatedLambda.Parameters[i]); 277_remappedSymbols.Add(local, local); 282_remappedSymbols.Add(local, updatedLocal);
Compilation\SyntaxAndDeclarationManager.cs (1)
585lastComputedMemberNamesMap.Add(newTree, lastComputedMemberNames);
Lowering\ExtensionMethodBodyRewriter.cs (2)
63builder.Add(parameter, rewrittenParameters[parameter.Ordinal]); 131builder.Add(localFunction, new RewrittenLambdaOrLocalFunctionSymbol(localFunction, _rewrittenContainingMethod));
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
228builder.Add(aliasSymbol.Target, aliasSymbol);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
725usingAliasesMap.Add(identifierValueText, aliasAndDirective);
Symbols\TypeSymbol.cs (1)
2362map.Add(implemented, body);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
325additionalValuesBuilder.Add(property, captured); 388dictionaryBuilder.Add(property, syntax); 464dictionaryBuilder.Add(symbol, captured);
Microsoft.CodeAnalysis.CSharp.Features (6)
Copilot\CSharpImplementNotImplementedExceptionFixProvider.cs (1)
104memberReferencesBuilder.Add(methodOrProperty, references);
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
325additionalValuesBuilder.Add(property, captured); 388dictionaryBuilder.Add(property, syntax); 464dictionaryBuilder.Add(symbol, captured);
Structure\CSharpBlockStructureProvider.cs (2)
66builder.Add((int)SyntaxKind.DisabledTextTrivia, [new DisabledTextTriviaStructureProvider()]); 67builder.Add((int)SyntaxKind.MultiLineCommentTrivia, [new MultilineCommentBlockStructureProvider()]);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpSolutionAnalyzerConfigOptionsUpdater.cs (1)
35builder.Add(oldKey, oldValue);
Microsoft.CodeAnalysis.Features (22)
CodeFixes\Service\CodeFixService.cs (3)
950configurationFixerMap.Add(diagnosticId, lazyConfigurationFixers); 981priorityMap.Add(fixer, i); 987languageMap.Add(diagnosticId, lazyMap);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
200diagnosticsMapBuilder.Add(targetSymbol, diagnosticsForSymbol);
EditAndContinue\DebuggingSession.cs (1)
448builder.Add(item.Key, [.. item]);
EditAndContinue\EditSession.cs (1)
1067map.Add(newSyntaxRef.SyntaxTree, oldRoot);
EditAndContinue\RunningProjectOptions.cs (1)
56result.Add(project.Id, new RunningProjectOptions() { RestartWhenChangesHaveNoEffect = restartAutomatically });
EmbeddedLanguages\RegularExpressions\RegexParser.CaptureInfoAnalyzer.cs (3)
47_captureNumberToSpan.Add(0, text.IsEmpty() ? default : GetSpan(text)); 203mapping.Add(val, span); 222_captureNumberToSpan.Add(_autoNumber, _captureNameToSpan[name]);
PullMemberUp\MembersPuller.cs (1)
480symbolToDeclarationsBuilder.Add(memberAnalysisResult.Member, [.. allSyntaxes]);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (4)
97properties.Add(RedundantEqualityConstants.RedundantSide, RedundantEqualityConstants.Right); 99properties.Add(RedundantEqualityConstants.Negate, RedundantEqualityConstants.Negate); 103properties.Add(RedundantEqualityConstants.RedundantSide, RedundantEqualityConstants.Left); 105properties.Add(RedundantEqualityConstants.Negate, RedundantEqualityConstants.Negate);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
36builder.Add(targetScope.ToString(), targetScope);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (4)
171propertiesBuilder.Add(UnusedValuePreferenceKey, preference.ToString()); 174propertiesBuilder.Add(IsUnusedLocalAssignmentKey, string.Empty); 179propertiesBuilder.Add(IsRemovableAssignmentKey, string.Empty); 182builder.Add((preference, isUnusedLocalAssignment, isRemovableAssignment), propertiesBuilder.ToImmutable());
Structure\Syntax\BlockStructureExtensions.cs (1)
17builder.Add(typeof(TType), [new TOutliner()]);
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
69builder.Add(project, diagnostics);
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
64lvalueFlowCaptureIdBuilder.Add(flowCaptureReference.Id, captureKind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
133builder.Add(symbolSpecification.ID, name); 147builder.Add(namingStyle.ID, name); 175builder.Add(rule, $"{serializedNameMap[rule.SymbolSpecification.ID]}_should_be_{serializedNameMap[rule.NamingStyle.ID]}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
64builder.Add(alias.Target, alias);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
56result.Add(key, items.ToImmutableAndFree());
Microsoft.CodeAnalysis.Workspaces (25)
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (1)
99projectsAndDiagnostics.Add(project, diagnostics);
Diagnostics\AbstractDiagnosticPropertiesService.cs (2)
32result.Add( 39result.Add(
Diagnostics\Extensions.cs (1)
240builder.Add(analyzer, result);
Diagnostics\HostDiagnosticAnalyzers.cs (6)
90builder.Add(project.Id, diagnosticIds); 149builder.Add(displayName, descriptors); 209builder.Add(referenceId, descriptors.ToImmutable()); 231builder.Add(referenceIdentity, analyzers); 269builder.Add(reference.Key, [.. analyzers.WhereNotNull()]); 308builder.Add(key, reference);
Diagnostics\SkippedHostAnalyzersInfo.cs (1)
104partiallySkippedHostAnalyzersBuilder.Add(hostAnalyzer, skippedIdsForAnalyzer);
Rename\ConflictEngine\RenamedSpansTracker.cs (2)
237builder.Add(docId, [.. spans]); 248builder.Add(docId, spans.SelectAsArray(
Serialization\SerializerService.cs (2)
225options.Add(key, value); 228optionsByLanguage.Add(language, StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(options.ToImmutable())));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
64lvalueFlowCaptureIdBuilder.Add(flowCaptureReference.Id, captureKind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
133builder.Add(symbolSpecification.ID, name); 147builder.Add(namingStyle.ID, name); 175builder.Add(rule, $"{serializedNameMap[rule.SymbolSpecification.ID]}_should_be_{serializedNameMap[rule.NamingStyle.ID]}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
64builder.Add(alias.Target, alias);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
56result.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
148builder.Add(document, [.. diagnosticsForDocument]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
162builder.Add(document.Id, new SemanticModelReuseInfo(semanticModel, semanticModel, bodyNode, topLevelSemanticVersion)); 168builder.Add(linkedId, linkedReuseInfo);
Workspace\Solution\ProjectDependencyGraph.cs (1)
242reverseReferencesBuilder.Add(projectId, reverseReferencesForProject);
Microsoft.Interop.ComInterfaceGenerator (6)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (2)
142properties.Add(AnalyzerDiagnostics.Metadata.MayRequireAdditionalWork, mayRequireAdditionalWork.ToString()); 143properties.Add(AnalyzerDiagnostics.Metadata.AddStringMarshalling, hasStrings.ToString());
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (2)
53optionsBuilder.Add(Option.MayRequireAdditionalWork, new Option.Bool(true)); 57optionsBuilder.Add(AddStringMarshallingOption, new Option.Bool(true));
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
75options.Add(optionKeyAndValue[0], new Bool(bool.Parse(value))); 79options.Add(optionKeyAndValue[0], new String(value));
Microsoft.Interop.LibraryImportGenerator (9)
Analyzers\ConvertToLibraryImportAnalyzer.cs (3)
85properties.Add(CharSet, dllImportData.CharacterSet.ToString()); 86properties.Add(ExactSpelling, dllImportData.ExactSpelling.ToString()); 87properties.Add(MayRequireAdditionalWork, mayRequireAdditionalWork.ToString());
Analyzers\ConvertToLibraryImportFixer.cs (2)
62optionsBuilder.Add(Option.MayRequireAdditionalWork, new Option.Bool(true)); 66optionsBuilder.Add(CharSetOption, new Option.String(diagnostic.Properties[ConvertToLibraryImportAnalyzer.CharSet]));
Analyzers\CustomMarshallerAttributeAnalyzer.cs (2)
36builder.Add(MarshalModeKey, mode.ToString()); 37builder.Add(Key, string.Join(Delimiter.ToString(), missingMemberNames));
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
75options.Add(optionKeyAndValue[0], new Bool(bool.Parse(value))); 79options.Add(optionKeyAndValue[0], new String(value));
Microsoft.Interop.SourceGeneration (1)
UseSiteAttributeProvider.cs (1)
50useSiteAttributesByIndirectionDepth.Add(indirectionDepth, useSiteAttributeData);
Microsoft.VisualStudio.TestPlatform.Common (1)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FastFilter.cs (1)
258_filterDictionaryBuilder.Add(name, values);
Roslyn.Diagnostics.Analyzers (9)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
64lvalueFlowCaptureIdBuilder.Add(flowCaptureReference.Id, captureKind);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
133builder.Add(symbolSpecification.ID, name); 147builder.Add(namingStyle.ID, name); 175builder.Add(rule, $"{serializedNameMap[rule.SymbolSpecification.ID]}_should_be_{serializedNameMap[rule.NamingStyle.ID]}");
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
64builder.Add(alias.Target, alias);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
56result.Add(key, items.ToImmutableAndFree());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
148builder.Add(document, [.. diagnosticsForDocument]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
162builder.Add(document.Id, new SemanticModelReuseInfo(semanticModel, semanticModel, bodyNode, topLevelSemanticVersion)); 168builder.Add(linkedId, linkedReuseInfo);
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (2)
274this.Add((TKey)key, (TValue)value!); 597this.Add(item.Key, item.Value);