10 references to GetPooledObject
Microsoft.CodeAnalysis.Workspaces (10)
ExternalAccess\Pythia\Api\PythiaObjectPool.cs (1)
32var disposer = Default<HashSet<T>>().GetPooledObject();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (2)
24using var nameSetPool = (isCaseSensitive ? SharedPools.StringHashSet : SharedPools.StringIgnoreCaseHashSet).GetPooledObject(); 91using var usedNamesPool = (isCaseSensitive ? SharedPools.StringHashSet : SharedPools.StringIgnoreCaseHashSet).GetPooledObject();
Workspace\Solution\ProjectDependencyGraph.cs (6)
292using var pooledObject = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 344using var pooledObject = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 389using var seenProjects = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 441using var seenProjects = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 458using var dependencySet = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 465using var topologicallySeenProjects = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject();
Workspace\Solution\SolutionState_Checksum.cs (1)
106using var projectCone = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject();