14 references to ToImmutableSegmentedDictionary
Microsoft.CodeAnalysis (8)
Emit\EditAndContinue\DefinitionMap.cs (5)
430=> lambdaDebugInfo.ToImmutableSegmentedDictionary( 435=> closureDebugInfo.ToImmutableSegmentedDictionary( 448lambdaMap = debugInfo.Lambdas.ToImmutableSegmentedDictionary( 452closureMap = debugInfo.Closures.ToImmutableSegmentedDictionary( 489: debugInfos.ToImmutableSegmentedDictionary(
Emit\EditAndContinue\SymbolChanges.cs (2)
468deletedMembers = lazyDeletedMembersBuilder?.ToImmutableSegmentedDictionary( 472updatedMethods = 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)
677var result = anonymousDelegates.ToImmutableSegmentedDictionary( 691var result = templates.ToImmutableSegmentedDictionary( 709.ToImmutableSegmentedDictionary(
Microsoft.CodeAnalysis.UnitTests (3)
Collections\ImmutableSegmentedDictionaryTest.cs (3)
126dictionary = pairs.ToImmutableSegmentedDictionary(p => p.Key.ToUpperInvariant(), p => p.Value.ToLowerInvariant()); 151Assert.Throws<ArgumentNullException>("keySelector", () => list.ToImmutableSegmentedDictionary<int, int, int>(null!, v => v)); 152Assert.Throws<ArgumentNullException>("elementSelector", () => list.ToImmutableSegmentedDictionary<int, int, int>(k => k, null!));