65 references to SetItem
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
170return dictionary.SetItem(key, collection);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
152return map.SetItem(document.Id, reuseInfo.Value);
Microsoft.Build (5)
Collections\CopyOnWritePropertyDictionary.cs (1)
345_backing = _backing.SetItem(projectProperty.Key, projectProperty);
Instance\ProjectItemDefinitionInstance.cs (1)
209_metadata = _metadata.SetItem(xml.Name, metadatum.EvaluatedValueEscaped);
Instance\ProjectItemInstance.cs (3)
1994_directMetadata = DirectMetadata.SetItem(name, metadataValueEscaped ?? string.Empty); 2007_directMetadata = DirectMetadata.SetItem(name, metadatum.EvaluatedValueEscaped); 2028_directMetadata = DirectMetadata.SetItem(name, evaluatedValueEscaped ?? string.Empty);
Microsoft.Build.Framework (3)
Collections\CopyOnWriteDictionary.cs (3)
184_backing = _backing.SetItem(key, value); 208_backing = _backing.SetItem(key, value); 258_backing = _backing.SetItem(item.Key, item.Value);
Microsoft.Build.Utilities.Core (1)
TaskItem.cs (1)
318_metadata = _metadata.SetItem(metadataName, metadataValue ?? string.Empty);
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
170return dictionary.SetItem(key, collection);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
152return map.SetItem(document.Id, reuseInfo.Value);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
170return dictionary.SetItem(key, collection);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
170return dictionary.SetItem(key, collection);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
152return map.SetItem(document.Id, reuseInfo.Value);
Microsoft.CodeAnalysis.CSharp (5)
Binder\DecisionDagBuilder.cs (3)
1809var whenTrueValues = values.SetItem(input, fromTestPassing); 1810var whenFalseValues = values.SetItem(input, fromTestFailing); 3730tempMap = tempMap.SetItem(oldTemp, newTemp);
Compilation\SyntaxAndDeclarationManager.cs (1)
583ordinalMap = ordinalMap.SetItem(newTree, oldOrdinal);
Syntax\CSharpPragmaWarningStateMap.cs (1)
138accumulatedSpecificWarningState = accumulatedSpecificWarningState.SetItem(errorId, directiveState);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpSolutionAnalyzerConfigOptionsUpdater.cs (1)
51var newFallbackOptions = oldFallbackOptions.SetItem(
Microsoft.CodeAnalysis.Features (3)
Diagnostics\DiagnosticAnalyzerTelemetry.cs (1)
55_analyzerInfoMap = _analyzerInfoMap.SetItem(analyzer.GetType(), new Data(analyzerTelemetryInfo, isTelemetryCollectionAllowed));
Diagnostics\Service\DiagnosticAnalyzerService_ComputeDiagnosticAnalysisResults.cs (2)
82return result.SetItem(compilerAnalyzer, newCompilerAnalysisResult); 152result = result.SetItem(documentAnalyzer, DiagnosticAnalysisResult.CreateFromBuilder(builder));
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
170return dictionary.SetItem(key, collection);
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\LocalBinderBuilder.vb (2)
75_listMap = _listMap.SetItem(list, newBinder) 81_nodeMap = _nodeMap.SetItem(node, DirectCast(binder, BlockBaseBinder))
Scanner\Directives.vb (1)
302symbols = symbols.SetItem(name, value)
Syntax\VisualBasicWarningStateMap.vb (1)
86accumulatedSpecificWarningState = accumulatedSpecificWarningState.SetItem(currentCode.Identifier.ValueText, reportingState)
Microsoft.CodeAnalysis.Workspaces (17)
Options\DocumentOptionSet.cs (1)
94=> new DocumentOptionSet(_configOptions, _underlyingOptions, Language, _values.SetItem(optionKey, internalValue));
Options\GlobalOptionService.cs (2)
164currentValues = currentValues.SetItem(optionKey, value); 209_currentValues = _currentValues.SetItem(optionKey, newValue);
Options\LegacyWorkspaceOptionService.cs (1)
70static (options, arg) => options.SetItem(arg.optionKey, arg.value),
Options\SolutionOptionSet.cs (1)
75_values.SetItem(optionKey, internalValue),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
170return dictionary.SetItem(key, collection);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
152return map.SetItem(document.Id, reuseInfo.Value);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (2)
488static (map, arg) => map.SetItem(arg.projectId, arg.maxLanguageVersion), 497static (map, arg) => map.SetItem(arg.projectId, arg.targetIdentifier),
Workspace\ProjectSystem\ProjectSystemProjectFactory.ProjectUpdateState.cs (3)
68ProjectReferenceInfos = ProjectReferenceInfos.SetItem(projectId, projectReferenceInformation) 87return map.SetItem(path, projects.Add(projectId)); 110return map.SetItem(path, projects);
Workspace\Solution\ProjectDependencyGraph.cs (1)
161_referencesMap.Remove(projectId) : _referencesMap.SetItem(projectId, referencedProjectIds);
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (2)
65return existingReferencesMap.SetItem(projectId, existingReferences.Union(referencedProjectIds)); 69return existingReferencesMap.SetItem(projectId, [.. referencedProjectIds]);
Workspace\Solution\SolutionState.cs (1)
533projectCountByLanguage = projectCountByLanguage.SetItem(language, newCount);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.cs (1)
138Properties = Properties.SetItem(SolutionDirProperty, solutionDirectory);
Microsoft.DotNet.HotReload.Watch (7)
Build\EvaluationResult.cs (5)
47.SetItem(PropertyNames.DotNetWatchBuild, "true") 48.SetItem(PropertyNames.DesignTimeBuild, "true") 49.SetItem(PropertyNames.SkipCompilerExecution, "true") 50.SetItem(PropertyNames.ProvideCommandLineArgs, "true") 52.SetItem(PropertyNames.NonExistentFile, "__NonExistentSubDir__\\__NonExistentFile__");
Utilities\ImmutableDictionaryExtensions.cs (2)
18return dictionary.SetItem(key, items.Add(value)); 37: dictionary.SetItem(key, updatedItems);
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
170return dictionary.SetItem(key, collection);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\FixAllContextHelper.cs (1)
41return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
152return map.SetItem(document.Id, reuseInfo.Value);
System.Collections.Immutable (4)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
521return this.SetItem(key, value);
System\Collections\Immutable\ImmutableInterlocked.cs (3)
366ImmutableDictionary<TKey, TValue> updatedCollection = priorCollection.SetItem(key, newValue); 413ImmutableDictionary<TKey, TValue> updatedCollection = priorCollection.SetItem(key, newValue); 486ImmutableDictionary<TKey, TValue> updatedCollection = priorCollection.SetItem(key, newValue);