1 write to _backwardMap
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (1)
38
_backwardMap
= backwardMap;
10 references to _backwardMap
Microsoft.CodeAnalysis.CodeStyle (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (10)
45
=>
_backwardMap
.TryGetValue(value, out key);
51
=>
_backwardMap
.ContainsKey(value);
62
_backwardMap
.Remove(value));
67
if (!
_backwardMap
.TryGetValue(value, out var key))
74
_backwardMap
.Remove(value));
81
_backwardMap
.Add(value, key));
86
public IEnumerable<TValue> Values =>
_backwardMap
.Keys;
92
return
_backwardMap
.Count == 0;
100
Debug.Assert(_forwardMap.Count ==
_backwardMap
.Count);
101
return
_backwardMap
.Count;