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
;
97
yield return
_map
[id];
105
foreach (var (_, state) in
_map
)
117
foreach (var (_, state) in
_map
)
129
foreach (var (_, state) in
_map
)
139
_map
.AddRange(states.Select(state => KeyValuePairUtil.Create(state.Id, state))));
144
return new(_ids.RemoveRange(enumerableIds),
_map
.RemoveRange(enumerableIds));
148
=> new(_ids,
_map
.SetItem(id, state));
152
var builder =
_map
.ToBuilder();
154
foreach (var (id, state) in
_map
)
177
var 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);