2 writes to Object
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (2)
25
Object
= allocator(pool);
36
Object
= null!;
60 references to Object
Microsoft.CodeAnalysis.Workspaces (60)
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)
352
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 (2)
32
classifiedSpans = pooledObject.
Object
;
53
if (pooledObject.
Object
.Count == 0)
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)
270
var results = pooledObject.
Object
;
322
var results = pooledObject.
Object
;
368
this.TopologicalSort(ProjectIds, seenProjects.
Object
, resultList.
Object
, cancellationToken);
369
_lazyTopologicallySortedProjects = [.. resultList.
Object
];
420
this.ComputeDependencySets(seenProjects.
Object
, results.
Object
, cancellationToken);
421
_lazyDependencySets = [.. results.
Object
];
436
ComputedDependencySet(project, dependencySet.
Object
);
439
seenProjects.UnionWith(dependencySet.
Object
);
444
this.TopologicalSort(dependencySet.
Object
, topologicallySeenProjects.
Object
, sortedProjects.
Object
, cancellationToken);
445
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 (2)
143
var ids = pooledIds.
Object
;
354
var result = pooledDictionary.
Object
;