51 references to SetItem
AnalyzerRunner (2)
DiagnosticAnalyzerRunner.cs (2)
50.SetItem("AD0001", ReportDiagnostic.Error) 51.SetItem("AD0002", ReportDiagnostic.Error);
Microsoft.Build (4)
Collections\CopyOnWritePropertyDictionary.cs (1)
341_backing = _backing.SetItem(projectProperty.Key, projectProperty);
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.Tasks.Core (3)
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 (3)
CopyOnWriteDictionary.cs (3)
184_backing = _backing.SetItem(key, value); 208_backing = _backing.SetItem(key, value); 258_backing = _backing.SetItem(item.Key, item.Value);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
170return dictionary.SetItem(key, collection);
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (2)
src\Features\DiagnosticsTestUtilities\CodeActions\CSharpVerifierHelper.cs (2)
32.SetItem("CS8632", ReportDiagnostic.Error) 33.SetItem("CS8669", ReportDiagnostic.Error);
Microsoft.CodeAnalysis.CSharp (5)
Binder\DecisionDagBuilder.cs (3)
941state.TrueBranch = uniquifyState(RemoveEvaluation(state.Cases, e), state.RemainingValues.SetItem(e.Target, currentValues)); 1169var whenTrueValues = values.SetItem(input, fromTestPassing); 1170var whenFalseValues = values.SetItem(input, fromTestFailing);
Compilation\SyntaxAndDeclarationManager.cs (1)
583ordinalMap = ordinalMap.SetItem(newTree, oldOrdinal);
Syntax\CSharpPragmaWarningStateMap.cs (1)
138accumulatedSpecificWarningState = accumulatedSpecificWarningState.SetItem(errorId, directiveState);
Microsoft.CodeAnalysis.EditorFeatures (1)
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
137return ValueTaskFactory.FromResult((oldTagTrees.SetItem(buffer, newTagTree), default(VoidResult)));
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (1)
180result = result.SetItem(analyzer, results);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.ProjectStates.cs (1)
114_projectAnalyzerStateMap = _projectAnalyzerStateMap.SetItem(project.Id, projectStateSets.Value);
Workspaces\LspWorkspaceManager.cs (1)
239_trackedDocuments = _trackedDocuments.SetItem(uri, (newSourceText, language));
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 (11)
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
40return ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty.SetItem(document, documentDiagnostics);
Options\DocumentOptionSet.cs (1)
94=> new DocumentOptionSet(_configOptions, _underlyingOptions, Language, _values.SetItem(optionKey, internalValue));
Options\SolutionOptionSet.cs (1)
75_values.SetItem(optionKey, internalValue),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
170return dictionary.SetItem(key, collection);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (2)
477static (map, arg) => map.SetItem(arg.projectId, arg.maxLanguageVersion), 486static (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_AddProjectReference.cs (1)
65return existingReferencesMap.SetItem(projectId, existingReferences.Union(referencedProjectIds));
Workspace\Solution\SolutionState.cs (1)
493projectCountByLanguage = projectCountByLanguage.SetItem(language, newCount);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Fakes\TestOptionSet.cs (1)
30return new TestOptionSet(_values.SetItem(optionKey, internalValue));
Microsoft.VisualStudio.LanguageServices (3)
Snippets\SnippetExpansionClient.cs (3)
878newArguments = newArguments.SetItem(method.Parameters[0].Name, placeholderValue); 893newArguments = newArguments.SetItem(previousParameter.Name, previousValue); 921newArguments = newArguments.SetItem(parameter.Name, value);
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspace.cs (2)
221_openedDocs = _openedDocs.SetItem(moniker, document.Id); 449_openedDocs = _openedDocs.SetItem(filePath, docId);
MSBuild (3)
CopyOnWriteDictionary.cs (3)
184_backing = _backing.SetItem(key, value); 208_backing = _backing.SetItem(key, value); 258_backing = _backing.SetItem(item.Key, item.Value);
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
514return this.SetItem(key, value);
System.Windows.Forms.Analyzers.CSharp.Tests (2)
Analyzers\Verifiers\CSharpVerifierHelper.cs (2)
29.SetItem("CS8632", ReportDiagnostic.Error) 30.SetItem("CS8669", ReportDiagnostic.Error);