36 references to ToImmutableDictionary
AnalyzerRunner (3)
CodeRefactoringRunner.cs (2)
155return refactorings.ToImmutableDictionary( 232return languages.ToImmutableDictionary(
DiagnosticAnalyzerRunner.cs (1)
234return analyzers.ToImmutableDictionary(
Microsoft.AspNetCore.Analyzers (1)
StartupAnalysisBuilder.cs (1)
35_analysesByType.ToImmutableDictionary(
Microsoft.Build (1)
Graph\GraphBuilder.cs (1)
706return ReferenceItems.ToImmutableDictionary(
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
185return _analyzerExecutionTimeMap.ToImmutableDictionary(pair => pair.Key, pair => TimeSpan.FromTicks(pair.Value.Value));
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Remote\RazorRemoteServiceCallbackDispatcherRegistry.cs (1)
20_lazyDispatchers = lazyDispatchers.ToImmutableDictionary(e => e.serviceType, e => e.dispatcher);
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (2)
RazorPredefinedProviderNameTests.cs (2)
53.ToImmutableDictionary(field => field.Name, field => (string)field.GetValue(null)); 60.ToImmutableDictionary(property => property.Name, property => (string)property.GetValue(null));
Microsoft.CodeAnalysis.Features (2)
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (2)
57.ToImmutableDictionary(t => t.Key, t => t.Value.ToImmutableDictionary(l => l.Key.Split('/')[0], l => l.Key));
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
116return fileCounts.ToImmutableDictionary(kvp => VsTfmAndFileExtHashingAlgorithm.HashInput(kvp.Key), kvp => kvp.Value);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Diagnostics\DiagnosticSourceProviders\DiagnosticSourceManager.cs (2)
41.ToImmutableDictionary(kvp => kvp.Name, kvp => kvp); 45.ToImmutableDictionary(kvp => kvp.Name, kvp => kvp);
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
DeterministicKeyBuilderTests.cs (1)
402var map = values.ToImmutableDictionary(
Microsoft.CodeAnalysis.Remote.Workspaces (3)
ExternalAccess\Pythia\Api\PythiaRemoteServiceCallbackDispatcherRegistry.cs (1)
20_lazyDispatchers = lazyDispatchers.ToImmutableDictionary(e => e.serviceType, e => e.dispatcher);
ExternalAccess\UnitTesting\Api\UnitTestingRemoteServiceCallbackDispatcherRegistry.cs (1)
20_lazyDispatchers = lazyDispatchers.ToImmutableDictionary(e => e.serviceType, e => e.dispatcher);
ServiceDescriptors.cs (1)
106_descriptors = interfaces.ToImmutableDictionary(i => i.serviceInterface, i => CreateDescriptors(i.serviceInterface, i.callbackInterface));
Microsoft.CodeAnalysis.Test.Utilities (3)
MarkedSource\SourceWithMarkedNodes.cs (2)
108=> MarkedSpans.ToImmutableDictionary( 113=> MarkedSpans.ToImmutableDictionary(
Metadata\ILValidation.cs (1)
342.Descendants().ToImmutableDictionary(e => e.Attribute("id").Value, e => e.Attribute("name").Value);
Microsoft.CodeAnalysis.Workspaces (7)
CodeRefactorings\FixAllOccurences\FixAllState.cs (1)
123return documentsToFix.ToImmutableDictionary(d => d, _ => default(Optional<ImmutableArray<TextSpan>>));
Diagnostics\DiagnosticAnalysisResultBuilder.cs (1)
199: map.ToImmutableDictionary(kv => kv.Key, kv => kv.Value.ToImmutableArray());
Editing\SymbolEditor.cs (1)
135.ToImmutableDictionary(g => g.Key, g => ImmutableArray.CreateRange(g));
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex_Create.cs (1)
31extensionMethodInfo.ToImmutableDictionary(
Log\FunctionIdExtensions.cs (1)
14() => Enum.GetValues(typeof(FunctionId)).Cast<FunctionId>().ToImmutableDictionary(f => f, f => f.ToString()));
Rename\ConflictEngine\MutableConflictResolution.cs (1)
153var documentToRelatedLocationsMap = this.RelatedLocations.GroupBy(loc => loc.DocumentId).ToImmutableDictionary(
Shared\Extensions\ILanguageMetadataExtensions.cs (1)
61return map.ToImmutableDictionary(kvp => kvp.Key, kvp => kvp.Value.ToImmutableAndFree());
Microsoft.DotNet.Build.Tasks.Feed (3)
src\model\SetupTargetFeedConfigV3.cs (3)
65FeedKeys = feedKeys.ToImmutableDictionary(i => i.ItemSpec, i => i.GetMetadata("Key")); 66FeedSasUris = feedSasUris.ToImmutableDictionary(i => i.ItemSpec, i => ConvertFromBase64(i.GetMetadata("Base64Uri"))); 67FeedOverrides = feedOverrides.ToImmutableDictionary(i => i.ItemSpec, i => i.GetMetadata("Replacement"));
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
71return new ValueEqualityImmutableDictionary<TKey, TValue>(source.ToImmutableDictionary(keySelector, valueSelector));
Microsoft.VisualStudio.LanguageServices (4)
ColorSchemes\ColorSchemeApplier.cs (1)
102_colorSchemeRegistryItems ??= _colorSchemes.ToImmutableDictionary(
ColorSchemes\ColorSchemeApplier.Settings.cs (1)
47}.ToImmutableDictionary(name => name, GetColorScheme);
Options\VisualStudioOptionPersisterProvider.cs (1)
47_readFallbacks = readFallbacks.ToImmutableDictionary(item => item.Metadata.ConfigName, item => item);
PullMemberUp\SymbolDependentsBuilder.cs (1)
25return membersInType.ToImmutableDictionary(