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