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