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)
285sortedPragmasWithIds.Add((trivia, idsBuilder.ToImmutable(), isDisable)); 386return (userIdExclusions: idBuilder.ToImmutable(), userCategoryExclusions: categoryBuilder.ToImmutable(), analyzerDisabled: false); 462var analyzers = analyzersBuilder.ToImmutable(); 481return (reportedDiagnostics.ToImmutable(), unhandledIds.ToImmutable());
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
69namedAttributeArguments = builder.ToImmutable();
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
108linqMethods = linqMethodSymbolsBuilder.ToImmutable();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
762var result = (builder.Count == array.Length) ? array : builder.ToImmutable();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
285return arrayBuilder.ToImmutable();
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
97result = ToImmutable(); 360return this.ToImmutable(); 408result = ToImmutable();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
133return result.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)
36visitor.WriteStringArray(friendlyNames.ToImmutable()); 37visitor.WriteLocationArray(locations.ToImmutable()); 46visitor.WriteSymbolKeyArray(elementTypes.ToImmutable());