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