23 references to ToImmutable
Microsoft.CodeAnalysis (23)
CodeGen\LocalSlotManager.cs (1)
260return _lazyAllLocals.ToImmutable();
Collections\ImmutableArrayExtensions.cs (1)
833var result = (builder.Count == array.Length) ? array : builder.ToImmutable();
Collections\OrderPreservingMultiDictionary.cs (1)
285return arrayBuilder.ToImmutable();
Collections\TopologicalSort.cs (1)
86result = hadCycle ? ImmutableArray<TNode>.Empty : resultBuilder.ToImmutable();
CommandLine\CommonCompiler.cs (1)
1203analyzerOptionsBuilder.ToImmutable());
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1869subsetProcessedAnalyzers = completedAnalyzers.ToImmutable();
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
665_deletedTypeMembers.Add(typeDef, newMethodDefs.ToImmutable()); 892encInfos.ToImmutable(),
MetadataReader\MetadataDecoder.cs (1)
896return locals.ToImmutable();
MetadataReader\MetadataReaderExtensions.cs (1)
79return result.ToImmutable();
MetadataReader\PEModule.cs (1)
401return builder.ToImmutable();
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (1)
340CaptureIds?.ToImmutable() ?? default,
ReferenceManager\CommonReferenceManager.Binding.cs (1)
371metadataReferences = metadataReferencesBuilder.ToImmutable();
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
854references = referencesBuilder.ToImmutable();
SourceGeneration\AdditionalSourcesCollection.cs (1)
138internal ImmutableArray<GeneratedSourceText> ToImmutable() => _sourcesAdded.ToImmutable();
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
127return result.ToImmutable();
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
286builder.Add(new DynamicLocalInfo(flagsBuilder.ToImmutable(), slotId, nameBuilder.ToString())); 444resultBuilder.Add(groupBuilder.ToImmutable());
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
97result = ToImmutable(); 360return this.ToImmutable(); 408result = ToImmutable();
Text\CompositeText.cs (1)
202return new CompositeText(segments.ToImmutable(), original.Encoding, original.ChecksumAlgorithm);
Text\SourceText.cs (1)
828return new ChangedText(this, newText, changeRanges.ToImmutable());