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