1 write to _map
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentStates.cs (1)
42_map = map;
21 references to _map
Microsoft.CodeAnalysis.Workspaces (21)
Workspace\Solution\TextDocumentStates.cs (21)
58=> new(ids, _map); 61=> _map.Count; 67=> _map.ContainsKey(id); 70=> _map.TryGetValue(documentId, out state); 73=> _map.TryGetValue(documentId, out var state) ? state : null; 76=> _map.TryGetValue(documentId, out var state) ? state : throw ExceptionUtilities.Unreachable(); 87=> _map; 97yield return _map[id]; 105foreach (var (_, state) in _map) 117foreach (var (_, state) in _map) 129foreach (var (_, state) in _map) 139_map.AddRange(states.Select(state => KeyValuePairUtil.Create(state.Id, state)))); 144return new(_ids.RemoveRange(enumerableIds), _map.RemoveRange(enumerableIds)); 148=> new(_ids, _map.SetItem(id, state)); 152var builder = _map.ToBuilder(); 154foreach (var (id, state) in _map) 177var newState = _map[id]; 196=> (_ids == oldStates._ids) ? SpecializedCollections.EmptyEnumerable<DocumentId>() : Except(_ids, oldStates._map); 202=> (_ids == oldStates._ids) ? SpecializedCollections.EmptyEnumerable<DocumentId>() : Except(oldStates._ids, _map); 216=> !_map.Values.SequenceEqual(oldStates._map.Values);