10 references to ClearAndFree
Microsoft.CodeAnalysis.Features (1)
AbstractUseAutoPropertyAnalyzer.cs (1)
132
_fieldNamesPool.
ClearAndFree
(fieldNames);
Microsoft.CodeAnalysis.Workspaces (8)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
72
SharedPools.Default<HashSet<ClassifiedSpan>>().
ClearAndFree
(worker._set);
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (6)
198
StringLiteralHashSetPool.
ClearAndFree
(stringLiterals);
199
LongLiteralHashSetPool.
ClearAndFree
(longLiterals);
283
SharedPools.StringIgnoreCaseHashSet.
ClearAndFree
(identifiers);
284
SharedPools.StringIgnoreCaseHashSet.
ClearAndFree
(escapedIdentifiers);
291
SharedPools.StringHashSet.
ClearAndFree
(identifiers);
292
SharedPools.StringHashSet.
ClearAndFree
(escapedIdentifiers);
PooledObject.cs (1)
113
=> pool.
ClearAndFree
(obj);
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedDocument.cs (1)
259
SharedPools.Default<HashSet<int>>().
ClearAndFree
((HashSet<int>)affectedVisibleSpanIndices);