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)
269using var pooledObject = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 321using var pooledObject = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 366using var seenProjects = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 418using var seenProjects = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 435using var dependencySet = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject(); 442using var topologicallySeenProjects = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject();
Workspace\Solution\SolutionState_Checksum.cs (1)
106using var projectCone = SharedPools.Default<HashSet<ProjectId>>().GetPooledObject();