22 references to ToImmutable
Microsoft.CodeAnalysis.CodeStyle (22)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
35
=> (_accessesBase, _hashedSymbols.
ToImmutable
());
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (6)
285
sortedPragmasWithIds.Add((trivia, idsBuilder.
ToImmutable
(), isDisable));
386
return (userIdExclusions: idBuilder.
ToImmutable
(), userCategoryExclusions: categoryBuilder.
ToImmutable
(), analyzerDisabled: false);
462
var analyzers = analyzersBuilder.
ToImmutable
();
481
return (reportedDiagnostics.
ToImmutable
(), unhandledIds.
ToImmutable
());
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
69
namedAttributeArguments = builder.
ToImmutable
();
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
114
linqMethods = linqMethodSymbolsBuilder.
ToImmutable
();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
833
var result = (builder.Count == array.Length) ? array : builder.
ToImmutable
();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
285
return arrayBuilder.
ToImmutable
();
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
97
result =
ToImmutable
();
360
return this.
ToImmutable
();
408
result =
ToImmutable
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
133
return result.
ToImmutable
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
79
symbolSpecifications.
ToImmutable
(),
80
namingStyles.
ToImmutable
(),
81
serializableRules.
ToImmutable
());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PooledArrayBuilder.cs (1)
34
public ImmutableArray<T> ToImmutable() => Builder.
ToImmutable
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
36
visitor.WriteStringArray(friendlyNames.
ToImmutable
());
37
visitor.WriteLocationArray(locations.
ToImmutable
());
46
visitor.WriteSymbolKeyArray(elementTypes.
ToImmutable
());