2 writes to Object
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (2)
25Object = allocator(pool); 36Object = null!;
58 references to Object
Microsoft.CodeAnalysis.Workspaces (58)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (2)
126var list = obj.Object; 155var list = obj.Object;
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (2)
176var oldStack = rightOldStack.Object; 177var newStack = rightNewStack.Object;
ExternalAccess\Pythia\Api\PythiaObjectPool.cs (3)
19instance = disposer.Object; 26instance = disposer.Object; 33instance = disposer.Object;
FindSymbols\FindReferences\FindReferenceCache.cs (1)
158var stack = obj.Object;
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (2)
110var currentMembers = pooledCurrentMembers.Object; 120var previousMembers = pooledPreviousMembers.Object;
Shared\Extensions\INamespaceSymbolExtensions.cs (1)
132return ContainsAccessibleTypesOrNamespacesWorker(namespaceSymbol, assembly, namespaceQueue.Object);
Shared\Extensions\SourceTextExtensions.cs (1)
198var buffer = pooledObject.Object;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.NodeEnumerator.cs (1)
46_stack = _pooledStack.Object;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
29var stack = pooledStack.Object;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (1)
88var spineNodes = pooledObject.Object;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
122AddTokenOperations(tokenStream, tokenOperations.Object, cancellationToken); 135ApplyTokenOperations(context, nodeOperations, tokenOperations.Object, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (1)
97var map = pooledObject.Object;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (7)
24builder = pooledObject.Object; 49stack = pooledObject.Object; 56list = pooledObject.Object; 63list = pooledObject.Object; 70set = pooledObject.Object; 78dictionary = pooledObject.Object; 86set = pooledObject.Object;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (2)
33if (Object != null) 35_releaser(_pool, Object);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
346var buffer = pooledObj.Object;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (3)
25var nameSet = nameSetPool.Object; 92var usedNames = usedNamesPool.Object; 95var collisionMap = collisionMapPool.Object;
TemporaryStorage\TemporaryStorageService.cs (1)
158var buffer = pooledObject.Object;
Utilities\SegmentedListPool.cs (1)
30classifiedSpans = pooledObject.Object;
Workspace\Solution\Checksum_Factory.cs (7)
32pooledHash.Object.Append(MemoryMarshal.AsBytes(value.AsSpan())); 33pooledHash.Object.Append(MemoryMarshal.AsBytes("\0".AsSpan())); 37pooledHash.Object.GetHashAndReset(hash); 51pooledHash.Object.Append(stream); 54pooledHash.Object.GetHashAndReset(hash); 115pooledHash.Object.Append(MemoryMarshal.AsBytes(hashSpan)); 119pooledHash.Object.GetHashAndReset(hash);
Workspace\Solution\ProjectDependencyGraph.cs (14)
293var results = pooledObject.Object; 345var results = pooledObject.Object; 391this.TopologicalSort(ProjectIds, seenProjects.Object, resultList.Object, cancellationToken); 392_lazyTopologicallySortedProjects = [.. resultList.Object]; 443this.ComputeDependencySets(seenProjects.Object, results.Object, cancellationToken); 444_lazyDependencySets = [.. results.Object]; 459ComputedDependencySet(project, dependencySet.Object); 462seenProjects.UnionWith(dependencySet.Object); 467this.TopologicalSort(dependencySet.Object, topologicallySeenProjects.Object, sortedProjects.Object, cancellationToken); 468results.Add(sortedProjects.Object.ToImmutableArrayOrEmpty());
Workspace\Solution\SolutionState_Checksum.cs (3)
125if (projectConeId != null && !projectCone.Object.Contains(orderedProjectId)) 153var projectConeTemp = projectConeId is null ? null : new ProjectCone(projectConeId, projectCone.Object.ToFrozenSet()); 170if (!projectCone.Object.Add(projectConeId))
Workspace\Solution\TextDocumentStates.cs (1)
146var ids = pooledIds.Object;