4 references to ToImmutableSegmentedDictionary
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
220
_idToNodeMap = map.
ToImmutableSegmentedDictionary
(kv => kv.Key, kv => (IReadOnlyList<SyntaxNode>)ImmutableArray.CreateRange(kv.Value));
Microsoft.CodeAnalysis.UnitTests (3)
Collections\ImmutableSegmentedDictionaryTest.cs (3)
126
dictionary = pairs.
ToImmutableSegmentedDictionary
(p => p.Key.ToUpperInvariant(), p => p.Value.ToLowerInvariant());
151
Assert.Throws<ArgumentNullException>("keySelector", () => list.
ToImmutableSegmentedDictionary
<int, int, int>(null!, v => v));
152
Assert.Throws<ArgumentNullException>("elementSelector", () => list.
ToImmutableSegmentedDictionary
<int, int, int>(k => k, null!));