3 instantiations of ValueSet
Microsoft.CodeAnalysis (3)
InternalUtilities\MultiDictionary.cs (3)
167
return new
ValueSet
(set.Add(v), _equalityComparer);
218
private readonly ValueSet _emptySet =
new
(null, null);
266
updated = new
ValueSet
(v, _valueComparer);
18 references to ValueSet
Microsoft.CodeAnalysis (18)
InternalUtilities\MultiDictionary.cs (18)
15
internal sealed class MultiDictionary<K, V> : IEnumerable<KeyValuePair<K, MultiDictionary<K, V>.
ValueSet
>>
27
public Enumerator(
ValueSet
v)
152
public
ValueSet
Add(V v)
200
public bool Equals(
ValueSet
other)
206
private readonly Dictionary<K,
ValueSet
> _dictionary;
214
public Dictionary<K,
ValueSet
>.KeyCollection Keys => _dictionary.Keys;
216
public Dictionary<K,
ValueSet
>.ValueCollection Values => _dictionary.Values;
218
private readonly
ValueSet
_emptySet = new(null, null);
221
public
ValueSet
this[K k]
225
return _dictionary.TryGetValue(k, out
var
set) ? set : _emptySet;
231
_dictionary = new Dictionary<K,
ValueSet
>();
236
_dictionary = new Dictionary<K,
ValueSet
>(comparer);
248
_dictionary = new Dictionary<K,
ValueSet
>(capacity, comparer);
254
ValueSet
updated;
256
if (_dictionary.TryGetValue(k, out
ValueSet
set))
278
public Dictionary<K,
ValueSet
>.Enumerator GetEnumerator()
283
IEnumerator<KeyValuePair<K,
ValueSet
>> IEnumerable<KeyValuePair<K,
ValueSet
>>.GetEnumerator()