1 write to _valueToIdMap
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.WriterReferenceMap.cs (1)
26
_valueToIdMap
= s_valueDictionaryPool.Allocate();
6 references to _valueToIdMap
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.WriterReferenceMap.cs (6)
34
if (
_valueToIdMap
.Count > 1024)
36
s_valueDictionaryPool.ForgetTrackedObject(
_valueToIdMap
);
40
_valueToIdMap
.Clear();
41
s_valueDictionaryPool.Free(
_valueToIdMap
);
46
=>
_valueToIdMap
.TryGetValue(value, out referenceId);
51
_valueToIdMap
.Add(value, id);