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)
111
ValidateForwardReferences(ProjectIds,
_referencesMap
);
112
ValidateReverseReferences(ProjectIds,
_referencesMap
, _lazyReverseReferencesMap);
139
if (!
_referencesMap
.ContainsKey(projectId))
161
_referencesMap
.Remove(projectId) :
_referencesMap
.SetItem(projectId, referencedProjectIds);
176
return
_referencesMap
.GetValueOrDefault(projectId, []);
208
ValidateReverseReferences(ProjectIds,
_referencesMap
, _lazyReverseReferencesMap);
217
foreach (var (projectId, references) in
_referencesMap
)
410
if (
_referencesMap
.TryGetValue(projectId, out var projectReferenceIds))
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (1)
38
referencesMap:
_referencesMap
,
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (2)
35
var 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)
17
if (!
_referencesMap
.TryGetValue(projectId, out var referencedProjectIds))
24
var referencesMap = ComputeNewReferencesMapForRemovedAllProjectReferences(
_referencesMap
, projectId);
Workspace\Solution\ProjectDependencyGraph_RemoveProject.cs (5)
20
existingForwardReferencesMap:
_referencesMap
,
27
existingForwardReferencesMap:
_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)
16
Contract.ThrowIfFalse(
_referencesMap
[projectId].Contains(referencedProjectId));
22
var referencesMap = ComputeNewReferencesMapForRemovedProjectReference(
_referencesMap
, projectId, referencedProjectId);