62 references to MoveToImmutable
Aspire.Dashboard (1)
Model\ResourceViewModelExtensions.cs (1)
91strings = builder.MoveToImmutable();
ConfigurationSchemaGenerator (1)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
174return builder.MoveToImmutable();
ILLink.RoslynAnalyzer (1)
CompilationExtensions.cs (1)
153 return builder.MoveToImmutable ();
Microsoft.CodeAnalysis (4)
CommandLine\CommonCompiler.cs (1)
478return embeddedTextBuilder.MoveToImmutable();
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (1)
148return builder.MoveToImmutable();
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
93result = _builder.MoveToImmutable(); 404result = _builder.MoveToImmutable();
Microsoft.CodeAnalysis.CodeStyle (6)
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
93result = _builder.MoveToImmutable(); 404result = _builder.MoveToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (1)
49return builder.MoveToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
136return new BKTree(_concatenatedLowerCaseWords, nodes.MoveToImmutable(), edges.MoveToImmutable());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
241return builder.MoveToImmutable();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenCapturing.cs (1)
40VariablesByScope.Add(fieldsBuilder.MoveToImmutable());
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Portable.cs (1)
462return builder.MoveToImmutable();
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
687newActiveStatements.MoveToImmutable(), 691hasBlockingRudeEdits ? default : newExceptionRegions.MoveToImmutable(),
Microsoft.CodeAnalysis.InteractiveHost (2)
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
93result = _builder.MoveToImmutable(); 404result = _builder.MoveToImmutable();
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
SemanticTokens\AbstractSemanticTokensTests.cs (1)
129return convertedStringsBuilder.MoveToImmutable();
Microsoft.CodeAnalysis.PooledObjects.Package (2)
ArrayBuilder.cs (2)
93result = _builder.MoveToImmutable(); 404result = _builder.MoveToImmutable();
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
319return builder.MoveToImmutable();
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Serialization\VisualBasicOptionsSerializationService.vb (1)
121Dim options = New VisualBasicParseOptions(languageVersion, documentationMode, kind, builder.MoveToImmutable())
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
93result = _builder.MoveToImmutable(); 404result = _builder.MoveToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (1)
49return builder.MoveToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
136return new BKTree(_concatenatedLowerCaseWords, nodes.MoveToImmutable(), edges.MoveToImmutable());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
241return builder.MoveToImmutable();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
216return results.MoveToImmutable();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
93result = _builder.MoveToImmutable(); 404result = _builder.MoveToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ImmutableArrayExtensions.cs (1)
49return builder.MoveToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (1)
241return builder.MoveToImmutable();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Formatting\FormattingTestBase.cs (1)
123outputSpans = outputBuilder.MoveToImmutable();
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
174return builder.MoveToImmutable();
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
174return builder.MoveToImmutable();
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
128return builder.MoveToImmutable();
Microsoft.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
128return builder.MoveToImmutable();
Microsoft.Interop.ComInterfaceGenerator (3)
ComInterfaceContext.cs (1)
44return accumulator.MoveToImmutable();
ComMethodInfo.cs (1)
152var comMethodInfo = new ComMethodInfo(comMethodDeclaringSyntax, method.Name, attributeInfos.MoveToImmutable().ToSequenceEqual(), shadowsBaseMethod);
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
174return builder.MoveToImmutable();
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
174return builder.MoveToImmutable();
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
174return builder.MoveToImmutable();
Microsoft.Interop.SourceGeneration (2)
IncrementalValuesProviderExtensions.cs (1)
28return builder.MoveToImmutable();
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
174return builder.MoveToImmutable();
System.Reflection.Metadata (13)
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (3)
117return arguments.MoveToImmutable(); 143return arguments.MoveToImmutable(); 411return array.MoveToImmutable();
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
573return stringVirtualIndexToHeapOffsetMap.MoveToImmutable();
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (1)
345return rowCounts.MoveToImmutable();
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (4)
155return types.MoveToImmutable(); 205parameterTypes = parameterBuilder.MoveToImmutable(); 265sizes = builder.MoveToImmutable(); 276lowerBounds = builder.MoveToImmutable();
System\Reflection\Metadata\TypeName.cs (1)
68: genericTypeArguments.Count == genericTypeArguments.Capacity ? genericTypeArguments.MoveToImmutable() : genericTypeArguments.ToImmutableArray();
System\Reflection\PortableExecutable\PEBuilder.cs (1)
150return result.MoveToImmutable();
System\Reflection\PortableExecutable\PEHeaders.cs (1)
308return builder.MoveToImmutable();
System\Reflection\PortableExecutable\PEReader.cs (1)
590return builder.MoveToImmutable();
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
174return builder.MoveToImmutable();
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
174return builder.MoveToImmutable();