48 references to ToImmutableDictionary
dotnet-format (4)
Analyzers\AnalyzerFormatter.cs (2)
172return result.Diagnostics.ToImmutableDictionary(kvp => kvp.Key.Id, kvp => kvp.Value.Select(diagnostic => diagnostic.Id).ToImmutableHashSet()); 266return diagnosticIds.ToImmutableDictionary(
Analyzers\AnalyzerReferenceInformationProvider.cs (1)
26.ToImmutableDictionary(project => project.Id, project => GetAnalyzersAndFixers(workspace, project));
Analyzers\CodeStyleInformationProvider.cs (1)
43.ToImmutableDictionary(
dotnet-watch (1)
Watch\MsBuildFileSetFactory.cs (1)
35buildProperties: BuildUtilities.ParseBuildProperties(buildArguments).ToImmutableDictionary(keySelector: arg => arg.key, elementSelector: arg => arg.value),
ILCompiler.Compiler (2)
Compiler\DependencyAnalysis\ExternalTypeMapNode.cs (1)
161.ToImmutableDictionary(p => p.Name, p => p.target.Type));
Compiler\DependencyAnalysis\ProxyTypeMapNode.cs (1)
103.ToImmutableDictionary(p => p.key.Type, p => p.value.Type));
Microsoft.AspNetCore.Analyzers (1)
StartupAnalysisBuilder.cs (1)
35_analysesByType.ToImmutableDictionary(
Microsoft.Build (1)
Graph\GraphBuilder.cs (1)
755return ReferenceItems.ToImmutableDictionary(
Microsoft.Build.Tasks.Git (2)
GitDataReader\GitConfig.Reader.cs (2)
85return new GitConfig(variables.ToImmutableDictionary(kvp => kvp.Key, kvp => kvp.Value.ToImmutableArray())); 95return new GitConfig(variables.ToImmutableDictionary(kvp => kvp.Key, kvp => kvp.Value.ToImmutableArray()));
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
234return _analyzerExecutionTimeMap.ToImmutableDictionary(pair => pair.Key, pair => TimeSpan.FromTicks(pair.Value.Value));
Emit\EditAndContinue\DefinitionMap.cs (1)
60.ToImmutableDictionary(edit => (IMethodSymbolInternal)GetISymbolInternalOrNull(edit.NewSymbol!)!, edit => edit.Instrumentation);
Microsoft.CodeAnalysis.Analyzers (1)
MetaAnalyzers\CompareSymbolsCorrectlyAnalyzer.cs (1)
361return builder.ToImmutableDictionary(kvp => kvp.Key, kvp => kvp.Value.ToImmutable());
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter_BasePatternSwitchLocalRewriter.cs (1)
76var switchSections = _switchArms.ToImmutableDictionary(kv => kv.Key, kv => kv.Value.ToImmutableAndFree());
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
169.ToImmutableDictionary(
Microsoft.CodeAnalysis.CSharp.Features (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
169.ToImmutableDictionary(
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadService.cs (1)
198var runningProjectsImpl = runningProjects.ToImmutableDictionary(
Microsoft.CodeAnalysis.Features (17)
CodeFixes\Service\CodeFixService.cs (2)
932return mutableMap.ToImmutableDictionary(kvp => kvp.Key, kvp => kvp.Value.ToImmutableAndFree()); 1019return builder.ToImmutableDictionary(kvp => kvp.Key, kvp => kvp.Value.ToImmutableAndFree());
CodeRefactorings\CodeRefactoringService.cs (1)
41private readonly Lazy<ImmutableDictionary<CodeRefactoringProvider, CodeChangeProviderMetadata>> _lazyRefactoringToMetadataMap = new(() => providers.Where(provider => provider.IsValueCreated).ToImmutableDictionary(provider => provider.Value, provider => provider.Metadata));
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (1)
66var result = builderMap.ToImmutableDictionary(kv => kv.Key, kv => DiagnosticAnalysisResult.CreateFromBuilder(kv.Value));
Diagnostics\Service\DiagnosticAnalyzerService_RemoteOrLocalDispatcher.cs (1)
145return map.Value.ToImmutableDictionary(
EditAndContinue\ActiveStatementsMap.cs (1)
93var byDocumentPath = updatedSpansByDocumentPath.ToImmutableDictionary(
EditAndContinue\EmitSolutionUpdateResults.cs (1)
99ProjectsToRestart = runningProjects.Keys.ToImmutableDictionary(keySelector: static p => p, elementSelector: static p => ImmutableArray.Create(p)),
Extensions\ExtensionFolder.cs (2)
92.ToImmutableDictionary(h => h.Name, h => (IExtensionMessageHandlerWrapper)h); 95.ToImmutableDictionary(h => h.Name, h => (IExtensionMessageHandlerWrapper)h);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
47_analyzerProviders = analyzerProviders.GroupBy(kv => kv.Metadata.Name).ToImmutableDictionary(g => g.Key, g => g.ToImmutableArray());
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
347.ToImmutableDictionary(tuple => tuple.parameter, tuple => tuple.syntaxNode);
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (2)
330.ToImmutableDictionary( 381.ToImmutableDictionary(
MoveToNamespace\AbstractMoveToNamespaceService.cs (1)
222.ToImmutableDictionary(symbol => GetNewSymbolName(symbol, targetNamespace), symbol => symbol);
Shared\Utilities\AnnotatedSymbolMapping.cs (1)
104var immutableDocumentIdToSymbolsMap = documentIdToSymbolsMap.ToImmutableDictionary(
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (2)
58.ToImmutableDictionary(t => t.Key, t => t.Value.ToImmutableDictionary(l => l.Key.Split('/')[0], l => l.Key));
Microsoft.CodeAnalysis.Workspaces (8)
CodeRefactorings\FixAllOccurences\RefactorAllState.cs (1)
122return documentsToRefactor.ToImmutableDictionary(d => d, _ => default(Optional<ImmutableArray<TextSpan>>));
Diagnostics\DiagnosticAnalysisResultBuilder.cs (1)
190: 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)
30extensionMemberInfo.ToImmutableDictionary(
Log\FunctionIdExtensions.cs (1)
14() => Enum.GetValues<FunctionId>().ToImmutableDictionary(f => f, f => f.ToString()));
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
788.ToImmutableDictionary(
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.HotReload.Watch (3)
Build\EvaluationResult.cs (1)
46.ToImmutableDictionary(keySelector: arg => arg.key, elementSelector: arg => arg.value)
HotReload\CompilationHandler.cs (2)
358.ToImmutableDictionary(e => e.Id, e => e.info); 1011.ToImmutableDictionary(
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
71return new ValueEqualityImmutableDictionary<TKey, TValue>(source.ToImmutableDictionary(keySelector, valueSelector));
Microsoft.VisualStudio.TestPlatform.Common (1)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FastFilter.cs (1)
269_filterDictionaryBuilder.ToImmutableDictionary(kvp => kvp.Key, kvp => (ISet<string>)_filterDictionaryBuilder[kvp.Key].ToImmutable()),