2 writes to s_lastCreatedAnalyzerReferenceSet
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (2)
287
s_lastCreatedAnalyzerReferenceSet
??= new(assemblyLoaderProvider);
291
s_lastCreatedAnalyzerReferenceSet
= new(assemblyLoaderProvider);
8 references to s_lastCreatedAnalyzerReferenceSet
Microsoft.CodeAnalysis.Workspaces (8)
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (8)
34
/// <see cref="
s_lastCreatedAnalyzerReferenceSet
"/>) is only updated atomically. And, also, when we're looking at
35
/// <see cref="
s_lastCreatedAnalyzerReferenceSet
"/> to mutate it, that it itself is only mutated atomically.
76
/// cref="
s_lastCreatedAnalyzerReferenceSet
"/>. And we only want to mutate that instance data from one thread at a
85
/// cref="
s_lastCreatedAnalyzerReferenceSet
"/>. And we only want to mutate that instance data from one thread at a
290
if (
s_lastCreatedAnalyzerReferenceSet
.HasConflicts(pathToMvidMap))
294
s_lastCreatedAnalyzerReferenceSet
.AddReferences(checksum, analyzerReferences, pathToMvidMap);
295
s_checksumToReferenceSet[checksum] = new(
s_lastCreatedAnalyzerReferenceSet
);
300
return
s_lastCreatedAnalyzerReferenceSet
.GetAnalyzerReferences(checksum);