9 references to ClearAndFree
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
166
_fieldNamesPool.
ClearAndFree
(fieldNames);
Microsoft.CodeAnalysis.Workspaces (7)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (6)
214
StringLiteralHashSetPool.
ClearAndFree
(stringLiterals);
215
LongLiteralHashSetPool.
ClearAndFree
(longLiterals);
382
SharedPools.StringIgnoreCaseHashSet.
ClearAndFree
(identifiers);
383
SharedPools.StringIgnoreCaseHashSet.
ClearAndFree
(escapedIdentifiers);
390
SharedPools.StringHashSet.
ClearAndFree
(identifiers);
391
SharedPools.StringHashSet.
ClearAndFree
(escapedIdentifiers);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (1)
134
=> pool.
ClearAndFree
(obj);
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedDocument.cs (1)
256
SharedPools.Default<HashSet<int>>().
ClearAndFree
((HashSet<int>)affectedVisibleSpanIndices);