14 references to ToImmutable
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (14)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
285return arrayBuilder.ToImmutable();
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
1296var result = (builder.Count == array.Length) ? array : builder.ToImmutable();
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
99result = ToImmutable(); 381return this.ToImmutable(); 429result = ToImmutable();
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
233return namespaceNamesBuilder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
132return result.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
79symbolSpecifications.ToImmutable(), 80namingStyles.ToImmutable(), 81serializableRules.ToImmutable());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (1)
34public ImmutableArray<T> ToImmutable() => Builder.ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
34visitor.WriteStringArray(friendlyNames.ToImmutable()); 35visitor.WriteLocationArray(locations.ToImmutable()); 44visitor.WriteSymbolKeyArray(elementTypes.ToImmutable());