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