19 references to ToImmutable
Microsoft.CodeAnalysis.CodeStyle (19)
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)
108
linqMethods = linqMethodSymbolsBuilder.
ToImmutable
();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
762
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\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
());