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