186 references to ToImmutable
AnalyzerRunner (2)
CodeRefactoringRunner.cs (1)
150return builder.ToImmutable();
DiagnosticAnalyzerRunner.cs (1)
368return projectDiagnosticBuilder.ToImmutable();
ILLink.RoslynAnalyzer (1)
DataFlow\LValueFlowCaptureProvider.cs (1)
85 return lvalueFlowCaptureIdBuilder != null ? lvalueFlowCaptureIdBuilder.ToImmutable () : ImmutableDictionary<CaptureId, FlowCaptureKind>.Empty;
Microsoft.AspNetCore.App.Analyzers (3)
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
178propertiesBuilder.ToImmutable(),
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
275properties: properties.ToImmutable(),
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
154properties: properties.ToImmutable(),
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Converters\DictionaryAdapters\ImmutableDictionaryBufferAdapter.cs (1)
20public static ImmutableDictionary<TKey, TValue> ToResult(ImmutableDictionary<TKey, TValue>.Builder buffer) => buffer.ToImmutable();
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ImmutableDictionaryBufferAdapter.cs (1)
20public static ImmutableDictionary<TKey, TValue> ToResult(ImmutableDictionary<TKey, TValue>.Builder buffer) => buffer.ToImmutable();
Microsoft.Build (3)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (1)
134var previousSection = new Section(activeSectionName, activeSectionProperties.ToImmutable());
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
41_referencedItemLists = builder.ReferencedItemLists.ToImmutable();
Graph\GraphBuilder.cs (1)
333projectGlobalProperties = solutionGlobalPropertiesBuilder.ToImmutable();
Microsoft.CodeAnalysis (23)
CommandLine\AnalyzerConfig.cs (1)
269var previousSection = new Section(sectionName, activeSectionProperties.ToImmutable());
CommandLine\AnalyzerConfigSet.cs (4)
298treeOptionsBuilder.Count > 0 ? treeOptionsBuilder.ToImmutable() : SyntaxTree.EmptyDiagnosticOptions, 299analyzerOptionsBuilder.Count > 0 ? analyzerOptionsBuilder.ToImmutable() : DictionaryAnalyzerConfigOptions.EmptyDictionary, 383treeOptionsBuilder.ToImmutable(), 384analyzerOptionsBuilder.ToImmutable(),
CommandLine\CommandLineParser.cs (1)
1400return builder.ToImmutable();
CommandLine\CommonCompiler.cs (1)
1048return existing.WithAdditionalTreeOptions(builder.ToImmutable());
DiagnosticAnalyzer\AnalysisResultBuilder.cs (5)
91return builder.ToImmutable(); 552builder.Add(key, perTreeBuilder.ToImmutable()); 556return builder.ToImmutable(); 582return builder.ToImmutable(); 606return builder.ToImmutable();
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1175return mapBuilder.ToImmutable();
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
850return (builder.ToImmutable(), hasAnyActionsRequiringCompilationEvents);
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
297return builder.ToImmutable();
Emit\CommonPEModuleBuilder.cs (1)
1013return builder.ToImmutable();
Operations\ControlFlowGraphBuilder.cs (2)
168localFunctions.ToImmutableAndFree(), localFunctionsMap.ToImmutable(), 169anonymousFunctionsMapOpt?.ToImmutable() ?? ImmutableDictionary<IFlowAnonymousFunctionOperation, (ControlFlowRegion, int)>.Empty);
ReferenceManager\CommonReferenceManager.State.cs (1)
576return lazyBuilder?.ToImmutable() ?? ImmutableDictionary<AssemblyIdentity, AssemblyIdentity>.Empty;
RuleSet\RuleSet.cs (1)
96return new RuleSet(FilePath, generalOption, specificOptions.ToImmutable(), _includes);
RuleSet\RuleSetProcessor.cs (1)
140return new RuleSet(filePath, generalOption, specificOptions.ToImmutable(), includes.ToImmutable());
SourceGeneration\IncrementalContexts.cs (1)
267=> (Sources.ToImmutableAndFree(), Diagnostics.ToReadOnlyAndFree(), GeneratorRunStateBuilder.ToImmutableAndFree(), HostOutputBuilder.ToImmutable());
SourceGeneration\Nodes\GeneratorRunStateTable.cs (1)
71return resultBuilder.ToImmutable();
Microsoft.CodeAnalysis.CodeStyle (13)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
169return DiagnosticHelper.Create(Descriptor, symbol.Locations.First(), NotificationOption2.ForSeverity(applicableRule.EnforcementLevel), options, additionalLocations: null, builder.ToImmutable(), failureReason);
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
115properties: properties.ToImmutable()));
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
42return builder.ToImmutable();
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
157return builder.ToImmutable(); 186builder.Add((preference, isUnusedLocalAssignment, isRemovableAssignment), propertiesBuilder.ToImmutable());
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
167var diagnostic = DiagnosticHelper.Create(descriptor, tree.GetLocation(issueSpan), notificationOption, analyzerOptions, additionalLocations: null, builder.ToImmutable());
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (2)
33binaryToAssignmentMap = binaryToAssignmentBuilder.ToImmutable(); 34assignmentToTokenMap = assignmentToTokenBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
80return lvalueFlowCaptureIdBuilder != null ? lvalueFlowCaptureIdBuilder.ToImmutable() : ImmutableDictionary<CaptureId, FlowCaptureKind>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (2)
139return builder.ToImmutable(); 167return builder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
72treeMap.TryAdd(key, builder.ToImmutable());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
54return result.ToImmutable();
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (3)
441_parameterToExistingMemberMap = parameterToExistingMemberMap.ToImmutable(); 442ParameterToNewFieldMap = parameterToNewFieldMap.ToImmutable(); 443ParameterToNewPropertyMap = parameterToNewPropertyMap.ToImmutable();
Microsoft.CodeAnalysis.CSharp (14)
Binder\DecisionDagBuilder.cs (1)
856existingState.UpdateRemainingValues(newRemainingValues.ToImmutable());
Binder\Imports.cs (1)
80expandedAliases = expandedAliasesBuilder.ToImmutable();
Compilation\SyntaxAndDeclarationManager.cs (4)
591loadDirectiveMapBuilder.ToImmutable(), 592loadedSyntaxTreeMapBuilder.ToImmutable(), 593declMapBuilder.ToImmutable(), 594lastComputedMemberNamesMap.ToImmutable(),
FlowAnalysis\NullableWalker.cs (3)
1529var analyzedNullabilitiesMap = analyzedNullabilities.ToImmutable(); 1589var analyzedNullabilitiesMap = analyzedNullabilities.ToImmutable(); 1610remappedSymbols = remappedSymbolsBuilder.ToImmutable();
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
177var updatedSymbols = _updatedSymbolMap.ToImmutable();
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
235return builder.ToImmutable();
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (2)
312mergedAliases = builder.ToImmutable(); 858UsingAliasesMap = usingAliasesMap?.ToImmutable() ?? globalUsingAliasesMap,
Symbols\TypeSymbol.cs (1)
2332return map.ToImmutable();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
330assignmentValues = additionalValuesBuilder.ToImmutable(); 392var expressions = GetAssignmentExpressionsFromValuesMap(positionalParams, dictionaryBuilder.ToImmutable()); 469return dictionaryBuilder.ToImmutable();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
1531var analyzerConfigOptionsProvider = new CompilerAnalyzerConfigOptionsProvider(analyzerConfigOptionsPerTreeBuilder.ToImmutable(), DictionaryAnalyzerConfigOptions.Empty);
Microsoft.CodeAnalysis.CSharp.Features (5)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
330assignmentValues = additionalValuesBuilder.ToImmutable(); 392var expressions = GetAssignmentExpressionsFromValuesMap(positionalParams, dictionaryBuilder.ToImmutable()); 469return dictionaryBuilder.ToImmutable();
Structure\CSharpBlockStructureProvider.cs (2)
57return builder.ToImmutable(); 67return builder.ToImmutable();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.cs (2)
2622var optionsProvider = new CompilerAnalyzerConfigOptionsProvider(ImmutableDictionary<object, AnalyzerConfigOptions>.Empty, new DictionaryAnalyzerConfigOptions(builder.ToImmutable())); 2659var newOptionsProvider = optionsProvider.WithGlobalOptions(new DictionaryAnalyzerConfigOptions(builder.ToImmutable()));
Microsoft.CodeAnalysis.EditorFeatures (2)
IntelliSense\AsyncCompletion\FilterSet.cs (1)
94s_filterMap = mapBuilder.ToImmutable();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
496return newTagTrees.ToImmutable();
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (6)
PDB\MethodDebugInfo.Native.cs (4)
429dynamicLocalMap = localBuilder.ToImmutable(); 434dynamicLocalConstantMap = constantBuilder.ToImmutable(); 507tupleLocalMap = localBuilder.ToImmutable(); 512tupleLocalConstantMap = constantBuilder.ToImmutable();
PDB\MethodDebugInfo.Portable.cs (2)
223dynamicLocalMap = lazyDynamicLocalsBuilder?.ToImmutable(); 224tupleLocalMap = lazyTupleLocalsBuilder?.ToImmutable();
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (2)
SpecialTypeExtensions.cs (1)
47return builder.ToImmutable();
VisualBasic\SyntaxKind.cs (1)
62return builder.ToImmutable();
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
VS\IFSharpWorkspaceProjectContextFactory.cs (1)
163_projectReferences = builder.ToImmutable();
Microsoft.CodeAnalysis.Features (23)
Completion\CompletionService.ProviderManager.cs (1)
62return builder.ToImmutable();
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
339return (newProperties, builder.ToImmutable());
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1477additionalReverseMap.ToImmutable());
EditAndContinue\DebuggingSession.cs (1)
445return builder.ToImmutable();
EmbeddedLanguages\RegularExpressions\RegexParser.CaptureInfoAnalyzer.cs (2)
64return (_captureNameToSpan.ToImmutable(), _captureNumberToSpan.ToImmutable());
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.FieldDelegatingCodeAction.cs (1)
54parameterToExistingFieldMap.ToImmutable(),
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (2)
225parameterToExistingFieldMap.ToImmutable(), 226parameterToNewFieldMap.ToImmutable(),
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
132return definitionToBackingField.ToImmutable();
SimplifyThisOrMe\AbstractSimplifyThisOrMeDiagnosticAnalyzer.cs (1)
79builder.ToImmutable()));
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
169return DiagnosticHelper.Create(Descriptor, symbol.Locations.First(), NotificationOption2.ForSeverity(applicableRule.EnforcementLevel), options, additionalLocations: null, builder.ToImmutable(), failureReason);
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
115properties: properties.ToImmutable()));
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
42return builder.ToImmutable();
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
157return builder.ToImmutable(); 186builder.Add((preference, isUnusedLocalAssignment, isRemovableAssignment), propertiesBuilder.ToImmutable());
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
167var diagnostic = DiagnosticHelper.Create(descriptor, tree.GetLocation(issueSpan), notificationOption, analyzerOptions, additionalLocations: null, builder.ToImmutable());
src\Analyzers\Core\Analyzers\UseCompoundAssignment\UseCompoundAssignmentUtilities.cs (2)
33binaryToAssignmentMap = binaryToAssignmentBuilder.ToImmutable(); 34assignmentToTokenMap = assignmentToTokenBuilder.ToImmutable();
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (3)
441_parameterToExistingMemberMap = parameterToExistingMemberMap.ToImmutable(); 442ParameterToNewFieldMap = parameterToNewFieldMap.ToImmutable(); 443ParameterToNewPropertyMap = parameterToNewPropertyMap.ToImmutable();
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
70return builder.ToImmutable();
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\ActiveStatementsMapTests.cs (1)
249var map = ActiveStatementsMap.Create(debugInfos, remapping.ToImmutable());
Microsoft.CodeAnalysis.LanguageServer.Protocol (12)
Features\CodeFixes\CodeFixService.cs (3)
917return configurationFixerMap.ToImmutable(); 948return priorityMap.ToImmutable(); 954return languageMap.ToImmutable();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.AnalysisData.cs (1)
144return new ProjectAnalysisData(project.Id, version.Value, builder.ToImmutable());
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (1)
302syntaxLocalMap: lazyLoadDiagnostics?.ToImmutable() ?? ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty,
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ProjectState.cs (3)
497_syntaxLocals?.ToImmutable() ?? ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 498_semanticLocals?.ToImmutable() ?? ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty, 499_nonLocals?.ToImmutable() ?? ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>.Empty,
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.cs (1)
165return builder.ToImmutable();
Features\Options\ClientFallbackAnalyzerConfigOptionsProvider.cs (1)
44return StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(builder.ToImmutable()));
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (1)
94StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(lazyBuilder.ToImmutable())));
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
78var prioritizedFixes = PrioritizeFixGroups(originalSolution, text, map.ToImmutable(), order.ToImmutable(), workspace);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
229return set.ToImmutable();
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\DiagnosticExtensions.cs (2)
406return builder.ToImmutable(); 420return builder.ToImmutable();
Microsoft.CodeAnalysis.VisualBasic (3)
CommandLine\VisualBasicCommandLineParser.vb (2)
1809Return result.ToImmutable() 1823Return result.ToImmutable()
Scanner\Scanner.vb (1)
161Return result.ToImmutable()
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Structure\VisualBasicBlockStructureProvider.vb (2)
57Return builder.ToImmutable() 65Return builder.ToImmutable()
Microsoft.CodeAnalysis.Workspaces (36)
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (1)
102return projectsAndDiagnostics.ToImmutable();
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
146return builder.ToImmutable();
Diagnostics\AbstractDiagnosticPropertiesService.cs (1)
44return result.ToImmutable();
Diagnostics\Extensions.cs (1)
226return builder.ToImmutable();
Diagnostics\HostDiagnosticAnalyzers.cs (5)
117return builder.ToImmutable(); 177return builder.ToImmutable(); 199return builder.ToImmutable(); 237return builder.ToImmutable(); 276return builder.ToImmutable();
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.ExtensionMethodInfo.cs (1)
67return new ExtensionMethodInfo(receiverTypeNameToExtensionMethodMapBuilder.ToImmutable());
Rename\ConflictEngine\RenamedSpansTracker.cs (2)
231return builder.ToImmutable(); 244return builder.ToImmutable();
Rename\ConflictResolution.cs (1)
121return result.ToImmutable();
SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
161return builder.ToImmutable();
Serialization\SerializerService.cs (2)
228optionsByLanguage.Add(language, StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(options.ToImmutable()))); 232return optionsByLanguage.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\LValueFlowCaptureProvider.cs (1)
80return lvalueFlowCaptureIdBuilder != null ? lvalueFlowCaptureIdBuilder.ToImmutable() : ImmutableDictionary<CaptureId, FlowCaptureKind>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (2)
139return builder.ToImmutable(); 167return builder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
72treeMap.TryAdd(key, builder.ToImmutable());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (1)
54return result.ToImmutable();
Workspace\Solution\ProjectDependencyGraph.cs (1)
128return builder?.ToImmutable() ?? map;
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (3)
93return builder.ToImmutable(); 149return builder.ToImmutable(); 197return builder.ToImmutable();
Workspace\Solution\ProjectDependencyGraph_RemoveAllProjectReferences.cs (3)
73return builder.ToImmutable(); 100return builder.ToImmutable(); 121return builder.ToImmutable();
Workspace\Solution\ProjectDependencyGraph_RemoveProject.cs (4)
82return builder.ToImmutable(); 118return builder.ToImmutable(); 146return builder.ToImmutable(); 174return builder.ToImmutable();
Workspace\Solution\ProjectDependencyGraph_RemoveProjectReference.cs (2)
91return builder.ToImmutable(); 145return builder.ToImmutable();
Workspace\Solution\SolutionState.cs (2)
389var newStateMap = newStateMapBuilder.ToImmutable(); 445var newStateMap = newStateMapBuilder.ToImmutable();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
79return builder.ToImmutable();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Program.cs (1)
51var targetObject = server.AddTarget(new BuildHost(logger, propertiesBuilder.ToImmutable(), binaryLogPath, server));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
FileSet.cs (1)
33_fileMap = builder.ToImmutable();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Options\OptionsTestInfo.cs (1)
82var result = resultBuilder.ToImmutable();
OptionsCollection.cs (1)
120return StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(builder.ToImmutable()));
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
141context.ReportDiagnostic(type.CreateDiagnostic(ConvertToGeneratedComInterface, properties.ToImmutable(), type.Name));
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
55return optionsBuilder.ToImmutable();
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
83return options.ToImmutable();
Microsoft.Interop.LibraryImportGenerator (4)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
89context.ReportDiagnostic(method.CreateDiagnosticInfo(ConvertToLibraryImport, properties.ToImmutable(), method.Name).ToDiagnostic());
Analyzers\ConvertToLibraryImportFixer.cs (1)
68return optionsBuilder.ToImmutable();
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
38return builder.ToImmutable();
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
83return options.ToImmutable();
Microsoft.Interop.SourceGeneration (1)
UseSiteAttributeProvider.cs (1)
55_useSiteAttributesByIndirectionDepth = useSiteAttributesByIndirectionDepth.ToImmutable();
Microsoft.VisualStudio.LanguageServices (5)
CodeLens\CodeLensCallbackListener.cs (1)
75return builder.ToImmutable();
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
139return descriptorsMap.ToImmutable();
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (1)
315return builder.ToImmutable();
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (2)
438return builder != null ? builder.ToImmutable() : ImmutableDictionary<Document, ImmutableArray<Diagnostic>>.Empty; 457return projectDiagsBuilder != null ? projectDiagsBuilder.ToImmutable() : ImmutableDictionary<Project, ImmutableArray<Diagnostic>>.Empty;
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableDictionary.cs (1)
161return builder.ToImmutable();
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
854other = builder.ToImmutable();