38 references to GetInstance
Microsoft.CodeAnalysis.CodeStyle (38)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (8)
158using var _2 = ArrayBuilder<(SyntaxTrivia pragma, ImmutableArray<string> ids, bool isDisable)>.GetInstance(out var sortedPragmasWithIds); 239using var _ = ArrayBuilder<string>.GetInstance(out var idsBuilder); 370using var _1 = ArrayBuilder<string>.GetInstance(out var idBuilder); 371using var _2 = ArrayBuilder<string>.GetInstance(out var categoryBuilder); 398using var _1 = ArrayBuilder<DiagnosticAnalyzer>.GetInstance(out var analyzersBuilder); 399using var _2 = ArrayBuilder<string>.GetInstance(out var unhandledIds); 450using var _3 = ArrayBuilder<Diagnostic>.GetInstance(out var reportedDiagnostics); 616using var _ = ArrayBuilder<Diagnostic>.GetInstance(out var diagnosticsBuilder);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
58using var _ = ArrayBuilder<(string name, IOperation value)>.GetInstance(out var builder);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (3)
448using var _2 = ArrayBuilder<string>.GetInstance(out var debuggerDisplayAttributeArguments); 593using var _ = ArrayBuilder<TDocumentationCommentTriviaSyntax>.GetInstance(out var documentationComments); 622using var _ = ArrayBuilder<TTypeDeclarationSyntax>.GetInstance(out var stack);
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (1)
98using var _ = ArrayBuilder<IMethodSymbol>.GetInstance(out var linqMethodSymbolsBuilder);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (2)
88using var _1 = ArrayBuilder<TMatch>.GetInstance(out var preMatches); 89using var _2 = ArrayBuilder<TMatch>.GetInstance(out var postMatches);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher_TryParseSection.cs (1)
55using var _1 = ArrayBuilder<(int minValue, int maxValue)>.GetInstance(out var numberRangePairs);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICollectionExtensions.cs (1)
16using var _ = ArrayBuilder<T>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
407using var _ = ArrayBuilder<ISymbol>.GetInstance(out var results);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamespaceOrTypeSymbolExtensions.cs (1)
93using var _ = ArrayBuilder<INamespaceOrTypeSymbol>.GetInstance(out var stack);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
214using var _1 = ArrayBuilder<SyntaxNode>.GetInstance(out var commonAncestorsStack); 915using var _ = ArrayBuilder<TDirectiveTriviaSyntax>.GetInstance(out var condDirectivesBuilder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
127using var _ = ArrayBuilder<SuppressOperation>.GetInstance(out var result); 150using var _ = ArrayBuilder<SuppressOperation>.GetInstance(out var buffer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (1)
163using var _ = ArrayBuilder<SuppressOperation>.GetInstance(out var suppressOperationScratch);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (3)
240using var _ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var triviaList); 268using var _ = ArrayBuilder<TextChange>.GetInstance(out var changes); 629using var _ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var lineBreaks);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\TriviaHelpers.cs (1)
19using var _ = ArrayBuilder<SyntaxTrivia>.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
213using var _ = ArrayBuilder<string>.GetInstance(out var violations); 255using var _ = ArrayBuilder<string>.GetInstance(out var violations);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
88using var _ = ArrayBuilder<SyntaxNode>.GetInstance(out var selectedMembers);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
25using var _ = ArrayBuilder<Location>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
55using var _ = ArrayBuilder<string>.GetInstance(out var builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
26using var _1 = ArrayBuilder<string?>.GetInstance(out var friendlyNames); 27using var _2 = ArrayBuilder<Location>.GetInstance(out var locations); 41using var _3 = ArrayBuilder<ISymbol>.GetInstance(out var elementTypes);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
38using var _ = ArrayBuilder<T>.GetInstance(out var result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
46using var _ = ArrayBuilder<TItem>.GetInstance(out var items);