1 write to _referencesMap
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectDependencyGraph.cs (1)
104_referencesMap = referencesMap;
21 references to _referencesMap
Microsoft.CodeAnalysis.Workspaces (21)
Workspace\Solution\ProjectDependencyGraph.cs (9)
111ValidateForwardReferences(ProjectIds, _referencesMap); 112ValidateReverseReferences(ProjectIds, _referencesMap, _lazyReverseReferencesMap); 139if (!_referencesMap.ContainsKey(projectId)) 161_referencesMap.Remove(projectId) : _referencesMap.SetItem(projectId, referencedProjectIds); 176return _referencesMap.GetValueOrDefault(projectId, []); 208ValidateReverseReferences(ProjectIds, _referencesMap, _lazyReverseReferencesMap); 217foreach (var (projectId, references) in _referencesMap) 410if (_referencesMap.TryGetValue(projectId, out var projectReferenceIds))
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (1)
38referencesMap: _referencesMap,
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (2)
35var newReferencesMap = ComputeNewReferencesMapForAdditionalProjectReferences(_referencesMap, projectId, referencedProjectIds); 56/// Computes a new <see cref="_referencesMap"/> for the addition of additional project references.
Workspace\Solution\ProjectDependencyGraph_RemoveAllProjectReferences.cs (2)
17if (!_referencesMap.TryGetValue(projectId, out var referencedProjectIds)) 24var referencesMap = ComputeNewReferencesMapForRemovedAllProjectReferences(_referencesMap, projectId);
Workspace\Solution\ProjectDependencyGraph_RemoveProject.cs (5)
20existingForwardReferencesMap: _referencesMap, 27existingForwardReferencesMap: _referencesMap, 43/// Computes a new <see cref="_referencesMap"/> for the removal of a project. 45/// <param name="existingForwardReferencesMap">The <see cref="_referencesMap"/> prior to the removal.</param> 50/// <returns>The <see cref="_referencesMap"/> for the project dependency graph once the project is removed.</returns>
Workspace\Solution\ProjectDependencyGraph_RemoveProjectReference.cs (2)
16Contract.ThrowIfFalse(_referencesMap[projectId].Contains(referencedProjectId)); 22var referencesMap = ComputeNewReferencesMapForRemovedProjectReference(_referencesMap, projectId, referencedProjectId);