49 references to Allocate
Microsoft.CodeAnalysis (49)
CodeGen\LocalScopeManager.cs (1)
393var block = BasicBlock.Pool.Allocate();
Collections\OrderPreservingMultiDictionary.cs (1)
68var instance = s_poolInstance.Allocate();
CommandLine\AnalyzerConfigSet.cs (5)
184var sectionKey = _sectionKeyPool.Allocate(); 243var treeOptionsBuilder = _treeOptionsPool.Allocate(); 244var analyzerOptionsBuilder = _analyzerOptionsPool.Allocate(); 371var treeOptionsBuilder = _treeOptionsPool.Allocate(); 372var analyzerOptionsBuilder = _analyzerOptionsPool.Allocate();
Diagnostic\DiagnosticBag.cs (1)
326DiagnosticBag bag = s_poolInstance.Allocate();
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
39var item = s_objectPool.Allocate();
DocumentationCommentId.cs (10)
110var results = s_symbolListPool.Allocate(); 161var results = s_symbolListPool.Allocate(); 188var results = s_symbolListPool.Allocate(); 249var results = s_symbolListPool.Allocate(); 769var containers = s_namespaceOrTypeListPool.Allocate(); 866var results = s_symbolListPool.Allocate(); 893var contexts = s_symbolListPool.Allocate(); 1012var containers = s_namespaceOrTypeListPool.Allocate(); 1224var parameters = s_parameterListPool.Allocate(); 1313parameters = s_parameterListPool.Allocate();
DocumentationComments\XmlDocumentationCommentTextReader.cs (1)
28var reader = s_pool.Allocate();
InternalUtilities\BlobBuildingStream.cs (1)
53return s_pool.Allocate();
InternalUtilities\StringTable.cs (1)
100return s_staticPool.Allocate();
InternalUtilities\TextKeyedCache.cs (1)
94return s_staticPool.Allocate();
PEWriter\PooledBlobBuilder.cs (2)
40var builder = s_chunkPool.Allocate(); 53return s_chunkPool.Allocate();
ReferenceManager\CommonReferenceManager.Binding.cs (4)
114var explicitAssembliesMap = s_pool.Allocate(); 333implicitAssembliesMap = s_pool.Allocate(); 729Queue<AssemblyReferenceCandidate> candidatesToExamine = s_candidatesToExaminePool.Allocate(); 733List<TAssemblySymbol?> candidateReferencedSymbols = s_candidateReferencedSymbolsPool.Allocate();
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (2)
173var seenNames = s_stringStackPool.Allocate(); 240var nodeStack = s_nodeStackPool.Allocate();
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
462var builder = s_poolInstance.Allocate();
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
27var obj = DefaultDelegatePool<TPooled>.Instance.Allocate();
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
52var instance = s_poolInstance.Allocate();
src\Dependencies\PooledObjects\PooledHashSet.cs (1)
41var instance = s_poolInstance.Allocate();
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
90var builder = s_poolInstance.Allocate();
Syntax\SyntaxNavigator.cs (2)
97var stack = s_childEnumeratorStackPool.Allocate(); 143var stack = s_childReversedEnumeratorStackPool.Allocate();
Syntax\SyntaxNode.Iterators.cs (2)
56_stack = s_stackPool.Allocate(); 165_stack = s_stackPool.Allocate();
Syntax\SyntaxTriviaList.cs (1)
295=> s_builderPool.Allocate();
Text\CompositeText.cs (1)
371var uniqueSources = s_uniqueSourcesPool.Allocate();
Text\SourceText.cs (7)
553var buffer = s_charArrayPool.Allocate(); 631var hash = s_contentHashPool.Allocate(); 632var charBuffer = s_charArrayPool.Allocate(); 723var buffer = s_charArrayPool.Allocate(); 1046var buffer = s_charArrayPool.Allocate(); 1185var buffer1 = s_charArrayPool.Allocate(); 1186var buffer2 = s_charArrayPool.Allocate();