40 references to Free
Microsoft.CodeAnalysis (40)
CodeGen\BasicBlock.cs (1)
670
BasicBlock.Pool.
Free
(this);
Collections\CachingFactory.cs (1)
211
pool?.
Free
(this);
Collections\OrderPreservingMultiDictionary.cs (1)
51
_pool?.
Free
(this);
CommandLine\AnalyzerConfigSet.cs (5)
314
_treeOptionsPool.
Free
(treeOptionsBuilder);
315
_analyzerOptionsPool.
Free
(analyzerOptionsBuilder);
327
pool.
Free
(sectionKey);
389
_treeOptionsPool.
Free
(treeOptionsBuilder);
390
_analyzerOptionsPool.
Free
(analyzerOptionsBuilder);
Diagnostic\DiagnosticBag.cs (1)
333
s_poolInstance.
Free
(this);
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
65
s_objectPool.
Free
(this);
DocumentationCommentId.cs (1)
31
base.
Free
(list);
DocumentationComments\XmlDocumentationCommentTextReader.cs (1)
30
s_pool.
Free
(reader);
InternalUtilities\BlobBuildingStream.cs (1)
91
s_pool.
Free
(this); // return first chunk to pool
InternalUtilities\StringTable.cs (1)
109
_pool?.
Free
(this);
InternalUtilities\TextKeyedCache.cs (1)
103
_pool?.
Free
(this);
PEWriter\PooledBlobBuilder.cs (1)
81
s_chunkPool.
Free
(this);
ReferenceManager\CommonReferenceManager.Binding.cs (4)
202
s_pool.
Free
(explicitAssembliesMap);
379
s_pool.
Free
(implicitAssembliesMap);
964
s_candidatesToExaminePool.
Free
(candidatesToExamine);
965
s_candidateReferencedSymbolsPool.
Free
(candidateReferencedSymbols);
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (2)
185
s_stringStackPool.
Free
(seenNames);
295
s_nodeStackPool.
Free
(nodeStack);
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
447
pool.
Free
(this);
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
375
DefaultDelegatePool<TSelf>.Instance.
Free
((TSelf)this);
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
36
_pool?.
Free
(this);
src\Dependencies\PooledObjects\PooledHashSet.cs (1)
25
_pool?.
Free
(this);
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
42
_pool.
Free
(this);
Syntax\SyntaxNavigator.cs (2)
134
s_childEnumeratorStackPool.
Free
(stack);
181
s_childReversedEnumeratorStackPool.
Free
(stack);
Syntax\SyntaxNode.Iterators.cs (2)
126
s_stackPool.
Free
(_stack);
182
s_stackPool.
Free
(_stack);
Syntax\SyntaxTriviaList.cs (1)
307
s_builderPool.
Free
(builder);
Text\CompositeText.cs (1)
388
s_uniqueSourcesPool.
Free
(uniqueSources);
Text\SourceText.cs (7)
570
s_charArrayPool.
Free
(buffer);
674
s_charArrayPool.
Free
(charBuffer);
678
s_contentHashPool.
Free
(hash);
738
s_charArrayPool.
Free
(buffer);
1060
s_charArrayPool.
Free
(buffer);
1206
s_charArrayPool.
Free
(buffer2);
1207
s_charArrayPool.
Free
(buffer1);