2 writes to _dictionary
Microsoft.CodeAnalysis (2)
Collections\OrderPreservingMultiDictionary.cs (2)
47
_dictionary
= null;
87
_dictionary
??= PooledDictionary<K, ValueSet>.GetInstance();
18 references to _dictionary
Microsoft.CodeAnalysis (18)
Collections\OrderPreservingMultiDictionary.cs (18)
38
if (
_dictionary
!= null)
41
foreach (var kvp in
_dictionary
)
46
_dictionary
.Free();
90
public bool IsEmpty =>
_dictionary
== null;
97
if (
_dictionary
is object &&
_dictionary
.TryGetValue(k, out var valueSet))
102
_dictionary
[k] = valueSet.WithAddedItem(v);
107
_dictionary
![k] = new ValueSet(v);
113
if (
_dictionary
is not null &&
_dictionary
.TryGetValue(key, out var valueSet))
125
return
_dictionary
is null ? s_emptyDictionary.GetEnumerator() :
_dictionary
.GetEnumerator();
146
if (
_dictionary
is object &&
_dictionary
.TryGetValue(k, out var valueSet))
158
return
_dictionary
is object &&
159
_dictionary
.TryGetValue(key, out var valueSet) &&
168
get { return
_dictionary
is null ? s_emptyDictionary.Keys :
_dictionary
.Keys; }