14 references to ToImmutableSegmentedDictionary
Microsoft.CodeAnalysis (8)
Emit\EditAndContinue\DefinitionMap.cs (5)
430
=> lambdaDebugInfo.
ToImmutableSegmentedDictionary
(
435
=> closureDebugInfo.
ToImmutableSegmentedDictionary
(
448
lambdaMap = debugInfo.Lambdas.
ToImmutableSegmentedDictionary
(
452
closureMap = debugInfo.Closures.
ToImmutableSegmentedDictionary
(
489
: debugInfos.
ToImmutableSegmentedDictionary
(
Emit\EditAndContinue\SymbolChanges.cs (2)
468
deletedMembers = lazyDeletedMembersBuilder?.
ToImmutableSegmentedDictionary
(
472
updatedMethods = updatedMethodsBuilder.
ToImmutableSegmentedDictionary
(
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
220
_idToNodeMap = map.
ToImmutableSegmentedDictionary
(kv => kv.Key, kv => (IReadOnlyList<SyntaxNode>)ImmutableArray.CreateRange(kv.Value));
Microsoft.CodeAnalysis.CSharp (3)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (3)
677
var result = anonymousDelegates.
ToImmutableSegmentedDictionary
(
691
var result = templates.
ToImmutableSegmentedDictionary
(
709
.
ToImmutableSegmentedDictionary
(
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!));