14 references to ToArrayAndFree
Microsoft.CodeAnalysis (14)
CommandLine\CommandLineParser.cs (2)
419
return result.
ToArrayAndFree
();
1034
return builder.
ToArrayAndFree
().Select(static x => x.ToString());
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
357
return builder.
ToArrayAndFree
();
693
return builder.
ToArrayAndFree
();
MetadataReader\MetadataHelpers.cs (4)
272
nestedTypesBuilder?.
ToArrayAndFree
(),
275
arrayRanksBuilder?.
ToArrayAndFree
(),
350
return typeBuilder.
ToArrayAndFree
();
358
return typeBuilder.
ToArrayAndFree
();
ReferenceManager\CommonReferenceManager.Binding.cs (1)
494
referenceBindings[0] = bindingsOfAssemblyBeingBuilt.
ToArrayAndFree
();
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
865
var block = builder.
ToArrayAndFree
();
Symbols\Attributes\AttributeUsageInfo.cs (1)
166
return new ValidTargetsStringLocalizableErrorArgument(builder.
ToArrayAndFree
());
Syntax\GreenNodeExtensions.cs (3)
40
return (TNode)node.SetAnnotations(newAnnotations.
ToArrayAndFree
());
71
return (TNode)node.SetAnnotations(newAnnotations.
ToArrayAndFree
());
102
return (TNode)node.SetAnnotations(newAnnotations.
ToArrayAndFree
());