213 references to GetInstance
Microsoft.CodeAnalysis (213)
CodeGen\ILBuilder.cs (6)
261ArrayBuilder<BasicBlock> reachableBlocks = ArrayBuilder<BasicBlock>.GetInstance(); 481var blockBuilder = ArrayBuilder<BasicBlock>.GetInstance(); 927var blockBuilder = ArrayBuilder<BasicBlock>.GetInstance(); 980ArrayBuilder<RawSequencePoint> seqPoints = ArrayBuilder<RawSequencePoint>.GetInstance(); 1024this.SeqPointsOpt = ArrayBuilder<RawSequencePoint>.GetInstance(); 1237_allocatedILMarkers = ArrayBuilder<ILMarker>.GetInstance();
CodeGen\LocalScopeManager.cs (4)
122var result = ArrayBuilder<Cci.LocalScope>.GetInstance(); 151var result = ArrayBuilder<Cci.ExceptionHandlerRegion>.GetInstance(); 158var result = ArrayBuilder<StateMachineHoistedLocalScope>.GetInstance(); 822var scopes = ArrayBuilder<Cci.LocalScope>.GetInstance();
CodeGen\MethodBody.cs (1)
113var sequencePointsBuilder = ArrayBuilder<Cci.SequencePoint>.GetInstance();
CodeGen\SwitchIntegralJumpTableEmitter.cs (2)
184var switchBucketsStack = ArrayBuilder<SwitchBucket>.GetInstance(); 223var crumbled = ArrayBuilder<SwitchBucket>.GetInstance();
Collections\DictionaryExtensions.cs (1)
84values = ArrayBuilder<V>.GetInstance();
Collections\ImmutableArrayExtensions.cs (14)
217var builder = ArrayBuilder<TResult>.GetInstance(); 247var builder = ArrayBuilder<TResult>.GetInstance(); 272var builder = ArrayBuilder<TResult>.GetInstance(); 292var builder = ArrayBuilder<TResult>.GetInstance(); 312var builder = ArrayBuilder<TResult>.GetInstance(); 335var builder = ArrayBuilder<TResult>.GetInstance(); 359var builder = ArrayBuilder<TResult>.GetInstance(); 383var builder = ArrayBuilder<TResult>.GetInstance(); 408var builder = ArrayBuilder<TResult>.GetInstance(); 470var builder = ArrayBuilder<TResult>.GetInstance(); 573builder = ArrayBuilder<T>.GetInstance(); 591builder = ArrayBuilder<T>.GetInstance(); 824var builder = ArrayBuilder<T>.GetInstance(); 866var builder = ArrayBuilder<TValue>.GetInstance();
Collections\TemporaryArray`1.cs (1)
335var builder = ArrayBuilder<T>.GetInstance();
Collections\TopologicalSort.cs (4)
53var ready = ArrayBuilder<TNode>.GetInstance(); 63var resultBuilder = ArrayBuilder<TNode>.GetInstance(); 103var toCount = ArrayBuilder<TNode>.GetInstance(); 104var allNodesBuilder = ArrayBuilder<TNode>.GetInstance();
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
109var numberRangePairs = ArrayBuilder<(int minValue, int maxValue)>.GetInstance();
CommandLine\AnalyzerConfigSet.cs (3)
245var diagnosticBuilder = ArrayBuilder<Diagnostic>.GetInstance(); 373var diagnosticBuilder = ArrayBuilder<Diagnostic>.GetInstance(); 613ArrayBuilder<string> configList = duplicateValue.configPaths ?? ArrayBuilder<string>.GetInstance();
CommandLine\CommandLineArguments.cs (1)
520var resolvedReferencesList = ArrayBuilder<AnalyzerFileReference>.GetInstance();
CommandLine\CommandLineParser.cs (8)
212var parts = ArrayBuilder<ReadOnlyMemory<char>>.GetInstance(); 345var pathMapBuilder = ArrayBuilder<KeyValuePair<string, string>>.GetInstance(); 391var result = ArrayBuilder<string>.GetInstance(); 501var args = ArrayBuilder<string>.GetInstance(); 831var parts = ArrayBuilder<ReadOnlyMemory<char>>.GetInstance(); 1032var builder = ArrayBuilder<ReadOnlyMemory<char>>.GetInstance(); 1155var pathBuilder = ArrayBuilder<ReadOnlyMemory<char>>.GetInstance(); 1171var builder = ArrayBuilder<string>.GetInstance();
CommandLine\CommonCompiler.cs (1)
1600var builder = ArrayBuilder<AdditionalTextFile>.GetInstance();
Compilation\Compilation.cs (1)
1284typesByMetadataName ??= ArrayBuilder<INamedTypeSymbol>.GetInstance();
Compilation\CompilationOptions.cs (1)
328var builder = ArrayBuilder<Diagnostic>.GetInstance();
Compilation\ParseOptions.cs (1)
47var builder = ArrayBuilder<Diagnostic>.GetInstance();
Diagnostic\DiagnosticBag.cs (1)
201ArrayBuilder<TDiagnostic> builder = ArrayBuilder<TDiagnostic>.GetInstance();
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
101var contexts = ArrayBuilder<DirectoryLoadContext>.GetInstance();
DiagnosticAnalyzer\AnalyzerDriver.cs (13)
901var builder = ArrayBuilder<(DiagnosticDescriptor Descriptor, DiagnosticDescriptorErrorLoggerInfo Info)>.GetInstance(); 1099var tasks = ArrayBuilder<Task>.GetInstance(); 1160array = ArrayBuilder<Suppression>.GetInstance(); 1328var declarationInfoBuilder = ArrayBuilder<DeclarationInfo>.GetInstance(); 1455var builder = ArrayBuilder<(DiagnosticAnalyzer, ImmutableArray<ImmutableArray<SymbolAnalyzerAction>>)>.GetInstance(); 1457var actionsByKindBuilder = ArrayBuilder<ArrayBuilder<SymbolAnalyzerAction>>.GetInstance(); 1469actionsByKindBuilder.Add(ArrayBuilder<SymbolAnalyzerAction>.GetInstance()); 1487var builder = ArrayBuilder<(DiagnosticAnalyzer, ImmutableArray<TAnalyzerAction>)>.GetInstance(); 1828var completedAnalyzers = ArrayBuilder<DiagnosticAnalyzer>.GetInstance(); 2544var builder = ArrayBuilder<DeclarationInfo>.GetInstance(); 2667var executableCodeBlockActionsBuilder = ArrayBuilder<ExecutableCodeBlockAnalyzerActions>.GetInstance(); 2920ArrayBuilder<IOperation> operationBlocksToAnalyze = ArrayBuilder<IOperation>.GetInstance(); 2936ArrayBuilder<IOperation> operationsToAnalyze = ArrayBuilder<IOperation>.GetInstance();
DiagnosticAnalyzer\AnalyzerDriver.DeclarationAnalysisData.cs (1)
32public readonly ArrayBuilder<SyntaxNode> DescendantNodesToAnalyze = ArrayBuilder<SyntaxNode>.GetInstance();
DiagnosticAnalyzer\AnalyzerExecutor.cs (3)
780var executableNodeActions = ArrayBuilder<TNodeAction>.GetInstance(); 937nodeActionsByKind.Add(kind, actionsForKind = ArrayBuilder<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>.GetInstance()); 1036operationActionsByKind.Add(kind, actionsForKind = ArrayBuilder<OperationAnalyzerAction>.GetInstance());
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
588var builder = ArrayBuilder<(string typeName, TExtension analyzer)>.GetInstance();
DiagnosticAnalyzer\AnalyzerManager.cs (1)
217filteredActionsBuilderOpt = ArrayBuilder<SymbolStartAnalyzerAction>.GetInstance();
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (4)
769var builder = ArrayBuilder<(AnalysisScope, ImmutableArray<CompilationEvent>)>.GetInstance(); 857var symbolStartAnalyzersBuilder = ArrayBuilder<DiagnosticAnalyzer>.GetInstance(); 858var otherAnalyzersBuilder = ArrayBuilder<DiagnosticAnalyzer>.GetInstance(); 1061var builder = ArrayBuilder<CompilationEvent>.GetInstance();
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
830var builder = ArrayBuilder<SyntaxNodeAnalyzerAction<TLanguageKindEnum>>.GetInstance();
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (1)
82var results = ArrayBuilder<ISymbol>.GetInstance();
Emit\CommonPEModuleBuilder.cs (3)
460var result = ArrayBuilder<Cci.AssemblyReferenceAlias>.GetInstance(); 514var builder = ArrayBuilder<Cci.ManagedResource>.GetInstance(); 830var builder = ArrayBuilder<ISymbolInternal>.GetInstance();
Emit\EditAndContinue\DefinitionMap.cs (2)
550var lambdasBuilder = ArrayBuilder<(DebugId id, IMethodSymbolInternal symbol)>.GetInstance(); 650var builder = ArrayBuilder<string>.GetInstance();
Emit\EditAndContinue\DeltaMetadataWriter.cs (7)
118_customAttributeRowIds = ArrayBuilder<int>.GetInstance(); 529var newMethodDefs = ArrayBuilder<IMethodDefinition>.GetInstance(); 679var implementingMethods = ArrayBuilder<int>.GetInstance(); 856var encInfos = ArrayBuilder<EncLocalInfo>.GetInstance(); 1074var paramEncMapRows = ArrayBuilder<int>.GetInstance(); 1244var tokens = ArrayBuilder<EntityHandle>.GetInstance(); 1321var debugTokens = ArrayBuilder<EntityHandle>.GetInstance();
Emit\EditAndContinue\SymbolChanges.cs (2)
389deletedMembersPerType = ArrayBuilder<ISymbolInternal>.GetInstance(); 433updatedMethodsPerType = ArrayBuilder<(IMethodSymbolInternal, IMethodSymbolInternal)>.GetInstance();
Emit\EditAndContinue\SymbolMatcher.cs (1)
199var memberBuilder = ArrayBuilder<ISymbolInternal>.GetInstance();
Emit\EditAndContinueMethodDebugInformation.cs (4)
99var mapBuilder = ArrayBuilder<LocalSlotDebugInfo>.GetInstance(); 212var closuresBuilder = ArrayBuilder<ClosureDebugInfo>.GetInstance(); 213var lambdasBuilder = ArrayBuilder<LambdaDebugInfo>.GetInstance(); 316var mapBuilder = ArrayBuilder<StateMachineStateDebugInfo>.GetInstance();
Emit\NoPia\CommonEmbeddedMember.cs (1)
65var builder = ArrayBuilder<TAttributeData>.GetInstance();
Emit\NoPia\CommonEmbeddedParameter.cs (1)
82var builder = ArrayBuilder<TAttributeData>.GetInstance();
Emit\NoPia\CommonEmbeddedType.cs (5)
93var builder = ArrayBuilder<TAttributeData>.GetInstance(); 249var builder = ArrayBuilder<Cci.IEventDefinition>.GetInstance(); 278var builder = ArrayBuilder<Cci.IFieldDefinition>.GetInstance(); 447var builder = ArrayBuilder<Cci.IMethodDefinition>.GetInstance(); 497var builder = ArrayBuilder<Cci.IPropertyDefinition>.GetInstance();
Emit\NoPia\EmbeddedTypesManager.cs (1)
95var builder = ArrayBuilder<TEmbeddedType>.GetInstance();
FileSystem\PathUtilities.cs (1)
857var resolvedParts = ArrayBuilder<string>.GetInstance();
InternalUtilities\EnumerableExtensions.cs (9)
361var builder = ArrayBuilder<TResult>.GetInstance(); 372var builder = ArrayBuilder<TResult>.GetInstance(); 421var builder = ArrayBuilder<TResult>.GetInstance(); 433var builder = ArrayBuilder<TResult>.GetInstance(); 471var builder = ArrayBuilder<TResult>.GetInstance(); 483var builder = ArrayBuilder<TResult>.GetInstance(); 498var builder = ArrayBuilder<TResult>.GetInstance(); 513var builder = ArrayBuilder<TResult>.GetInstance(); 525var builder = ArrayBuilder<TResult>.GetInstance();
MetadataReader\MetadataDecoder.cs (2)
760modifiers = ArrayBuilder<ModifierInfo<TypeSymbol>>.GetInstance(); 1901ArrayBuilder<MethodSymbol> resultBuilder = ArrayBuilder<MethodSymbol>.GetInstance();
MetadataReader\MetadataHelpers.cs (3)
292nestedTypesBuilder = ArrayBuilder<string>.GetInstance(); 328var typeBuilder = ArrayBuilder<AssemblyQualifiedTypeName>.GetInstance(); 433arrayRanksBuilder = ArrayBuilder<int>.GetInstance();
MetadataReader\PEModule.cs (1)
381var builder = ArrayBuilder<string>.GetInstance();
NativePdbWriter\PdbWriter.cs (2)
377nestedNamesReversed = ArrayBuilder<string>.GetInstance(); 467var scopeStack = ArrayBuilder<LocalScope>.GetInstance();
Operations\ControlFlowBranch.cs (2)
84var builder = ArrayBuilder<ControlFlowRegion>.GetInstance(); 146builder = ArrayBuilder<ControlFlowRegion>.GetInstance();
Operations\ControlFlowGraphBuilder.BasicBlockBuilder.cs (1)
55_statements = ArrayBuilder<IOperation>.GetInstance();
Operations\ControlFlowGraphBuilder.cs (16)
70_evalStack = ArrayBuilder<(EvalStackFrame? frameOpt, IOperation? operationOpt)>.GetInstance(); 113var blocks = ArrayBuilder<BasicBlockBuilder>.GetInstance(); 149var localFunctions = ArrayBuilder<IMethodSymbol>.GetInstance(); 249var toVisit = ArrayBuilder<BasicBlockBuilder>.GetInstance(); 893predecessorsBuilder = ArrayBuilder<BasicBlockBuilder>.GetInstance(); 1152builder = ArrayBuilder<RegionBuilder>.GetInstance(); 2055interpolatedStringBuilder ??= ArrayBuilder<IInterpolatedStringHandlerCreationOperation>.GetInstance(); 2204var stack = ArrayBuilder<(IBinaryOperation, EvalStackFrame)>.GetInstance(); 2794var stack = ArrayBuilder<(IOperation? condition, BasicBlockBuilder dest, bool jumpIfTrue)>.GetInstance(); 3369var operations = ArrayBuilder<IOperation>.GetInstance(); 3741var predecessors = ArrayBuilder<BasicBlockBuilder>.GetInstance(); 6849var appendCalls = ArrayBuilder<IInterpolatedStringAppendOperation>.GetInstance(); 6901var stack = ArrayBuilder<IInterpolatedStringAdditionOperation>.GetInstance(); 7445var children = ArrayBuilder<IOperation>.GetInstance(); 7574var stack = ArrayBuilder<IBinaryPatternOperation>.GetInstance(); 7825(localFunctionsBuilder ??= ArrayBuilder<IOperation>.GetInstance()).Add(statement);
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (5)
70CaptureIds = ArrayBuilder<CaptureId>.GetInstance(); 87CaptureIds = ArrayBuilder<CaptureId>.GetInstance(); 102LocalFunctions = ArrayBuilder<(IMethodSymbol, ILocalFunctionOperation)>.GetInstance(); 121LocalFunctions = ArrayBuilder<(IMethodSymbol, ILocalFunctionOperation)>.GetInstance(); 132Regions = ArrayBuilder<RegionBuilder>.GetInstance();
Operations\OperationExtensions.cs (3)
96var stack = ArrayBuilder<IOperation.OperationList.Enumerator>.GetInstance(); 135var arrayBuilder = ArrayBuilder<ILocalSymbol>.GetInstance(); 155var arrayBuilder = ArrayBuilder<ILocalSymbol>.GetInstance();
PEWriter\CustomDebugInfoWriter.cs (3)
180builder = ArrayBuilder<T>.GetInstance(); 193builder = ArrayBuilder<T>.GetInstance(); 276var usingCounts = ArrayBuilder<int>.GetInstance();
PEWriter\MetadataWriter.cs (1)
3911var consolidatedTypeArguments = ArrayBuilder<ITypeReference>.GetInstance();
PEWriter\MetadataWriter.PortablePdb.cs (1)
515var builder = ArrayBuilder<byte>.GetInstance();
PEWriter\TypeNameSerializer.cs (2)
94ArrayBuilder<ITypeReference> consolidatedTypeArguments = ArrayBuilder<ITypeReference>.GetInstance(); 275var namesReversed = ArrayBuilder<string>.GetInstance();
ReferenceManager\CommonReferenceManager.Binding.cs (5)
113var referenceBindings = ArrayBuilder<AssemblyReferenceBinding[]>.GetInstance(); 232var implicitAssemblies = ArrayBuilder<AssemblyData>.GetInstance(); 237var metadataReferencesBuilder = ArrayBuilder<MetadataReference>.GetInstance(); 242var referenceBindingsToProcess = ArrayBuilder<(MetadataReference, ArraySegment<AssemblyReferenceBinding>)>.GetInstance(); 1019corLibraryCandidates = ArrayBuilder<int>.GetInstance();
ReferenceManager\CommonReferenceManager.Resolution.cs (5)
237ArrayBuilder<MetadataReference>? uniqueDirectiveReferences = (referenceDirectiveLocations != null) ? ArrayBuilder<MetadataReference>.GetInstance() : null; 238var assembliesBuilder = ArrayBuilder<AssemblyData>.GetInstance(); 650modules = ArrayBuilder<PEModule>.GetInstance(); 795ArrayBuilder<MetadataReference> referencesBuilder = ArrayBuilder<MetadataReference>.GetInstance(); 829referenceDirectiveLocationsBuilder = ArrayBuilder<Location>.GetInstance();
ReferenceManager\CommonReferenceManager.State.cs (1)
618var assemblyIndicesToProcess = ArrayBuilder<int>.GetInstance();
ReferenceManager\MergedAliases.cs (3)
41RecursiveAliasesOpt = ArrayBuilder<string>.GetInstance(); 52AliasesOpt = ArrayBuilder<string>.GetInstance(); 64(MergedReferencesOpt ??= ArrayBuilder<MetadataReference>.GetInstance()).Add(reference);
SourceGeneration\AdditionalSourcesCollection.cs (1)
32_sourcesAdded = ArrayBuilder<GeneratedSourceText>.GetInstance();
SourceGeneration\GeneratorDriver.cs (6)
73ArrayBuilder<SyntaxTree> trees = ArrayBuilder<SyntaxTree>.GetInstance(); 225var constantSourcesBuilder = ArrayBuilder<SyntaxTree>.GetInstance(); 226var syntaxInputNodes = ArrayBuilder<SyntaxInputNode>.GetInstance(); 243var outputBuilder = ArrayBuilder<IIncrementalGeneratorOutputNode>.GetInstance(); 244var inputBuilder = ArrayBuilder<SyntaxInputNode>.GetInstance(); 427ArrayBuilder<Diagnostic> filteredDiagnostics = ArrayBuilder<Diagnostic>.GetInstance();
SourceGeneration\Nodes\BatchNode.cs (1)
39var sourceInputsBuilder = newTable.TrackIncrementalSteps ? ArrayBuilder<(IncrementalGeneratorRunStep InputStep, int OutputIndex)>.GetInstance() : null;
SourceGeneration\Nodes\HostOutputNode.cs (1)
56ArrayBuilder<(string, object)> output = ArrayBuilder<(string, object)>.GetInstance();
SourceGeneration\Nodes\NodeStateTable.cs (2)
262_steps = ArrayBuilder<IncrementalGeneratorRunStep>.GetInstance(); 641var itemBuilder = ArrayBuilder<T>.GetInstance();
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (1)
127(results ??= ArrayBuilder<SyntaxNode>.GetInstance()).Add(node);
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (2)
99var result = ArrayBuilder<T>.GetInstance(); 143var result = ArrayBuilder<AttributeData>.GetInstance();
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (5)
90var aliases = Aliases.GetInstance(); 117var globalAliases = Aliases.GetInstance(); 168var localAliases = Aliases.GetInstance(); 174var results = ArrayBuilder<SyntaxNode>.GetInstance(); 175var attributeTargets = ArrayBuilder<SyntaxNode>.GetInstance();
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (3)
398var externAliasBuilder = ArrayBuilder<string>.GetInstance(); 423var groupBuilder = ArrayBuilder<string>.GetInstance(); 853var builder = ArrayBuilder<byte>.GetInstance();
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
469var builder = GetInstance(); 476var builder = GetInstance(); 541bucket = ArrayBuilder<T>.GetInstance();
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (3)
215var allFieldsAndValues = ArrayBuilder<EnumField>.GetInstance(); 218var usedFieldsAndValues = ArrayBuilder<EnumField>.GetInstance(); 339var enumFields = ArrayBuilder<EnumField>.GetInstance();
Symbols\Attributes\AttributeUsageInfo.cs (1)
153var builder = ArrayBuilder<string>.GetInstance();
Syntax\GreenNode.cs (1)
634var stack = ArrayBuilder<(GreenNode node, bool leading, bool trailing)>.GetInstance();
Syntax\GreenNode.NodeEnumerable.cs (1)
32_stack = ArrayBuilder<Syntax.InternalSyntax.ChildSyntaxList.Enumerator>.GetInstance();
Syntax\GreenNodeExtensions.cs (4)
16var newAnnotations = ArrayBuilder<SyntaxAnnotation>.GetInstance(); 53var newAnnotations = ArrayBuilder<SyntaxAnnotation>.GetInstance(); 84var removalAnnotations = ArrayBuilder<SyntaxAnnotation>.GetInstance(); 93var newAnnotations = ArrayBuilder<SyntaxAnnotation>.GetInstance();
Syntax\SyntaxNode.cs (1)
456var stack = PooledObjects.ArrayBuilder<GreenNode?>.GetInstance();
Syntax\SyntaxNode.Iterators.cs (3)
205_discriminatorStack = ArrayBuilder<Which>.GetInstance(); 298_tokenStack = ArrayBuilder<SyntaxNodeOrToken>.GetInstance(); 299_discriminatorStack = ArrayBuilder<Which>.GetInstance();
Text\CompositeText.cs (1)
94var newSegments = ArrayBuilder<SourceText>.GetInstance();
Text\SourceText.cs (2)
760var segments = ArrayBuilder<SourceText>.GetInstance(); 761var changeRanges = ArrayBuilder<TextChangeRange>.GetInstance();
Text\TextChangeRangeExtensions.cs (1)
130var builder = ArrayBuilder<TextChangeRange>.GetInstance();