54 references to Allocate
Microsoft.CodeAnalysis.Workspaces (54)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
53
_pendingNodes = s_stackPool.
Allocate
();
Differencing\LongestCommonSubsequence.cs (1)
150
_currentBuffer = _firstBuffer = bufferPool.
Allocate
();
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
564
var pooledInstance = s_symbolSetPool.
Allocate
();
FindSymbols\FindReferences\MetadataUnifyingSymbolHashSet.cs (1)
19
=> s_metadataUnifyingSymbolHashSetPool.
Allocate
();
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
558
var baseTypeNameParts = s_stringListPool.
Allocate
();
800
var node = s_pool.
Allocate
();
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
22
=> s_symbolMapPool.
Allocate
();
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (2)
49
var stringLiterals = StringLiteralHashSetPool.
Allocate
();
50
var longLiterals = LongLiteralHashSetPool.
Allocate
();
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (2)
89
=> s_aliasMapListPool.
Allocate
();
142
=> s_aliasMapPool.
Allocate
();
Log\KeyValueLogMessage.cs (2)
30
var logMessage = s_pool.
Allocate
();
41
var logMessage = s_pool.
Allocate
();
Shared\Extensions\SourceTextExtensions.cs (1)
269
return s_charArrayPool.
Allocate
();
Shared\Utilities\XmlFragmentParser.cs (1)
41
var instance = s_pool.
Allocate
();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
68
var instance = s_poolInstance.
Allocate
();
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
100
return s_staticPool.
Allocate
();
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
462
var builder = s_poolInstance.
Allocate
();
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
27
var obj = DefaultDelegatePool<TPooled>.Instance.
Allocate
();
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
52
var instance = s_poolInstance.
Allocate
();
src\Dependencies\PooledObjects\PooledHashSet.cs (1)
41
var instance = s_poolInstance.
Allocate
();
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
90
var builder = s_poolInstance.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
35
public static BasicBlockAnalysisData GetInstance() => s_pool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
41
var visitor = s_visitorPool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (4)
24
public SegmentedList<IndentBlockOperation> IndentBlockOperation { get; } = s_indentBlockOperationPool.
Allocate
();
25
public SegmentedList<SuppressOperation> SuppressOperation { get; } = s_suppressOperationPool.
Allocate
();
26
public SegmentedList<AlignTokensOperation> AlignmentOperation { get; } = s_alignTokensOperationPool.
Allocate
();
27
public SegmentedList<AnchorIndentationOperation> AnchorIndentationOperations { get; } = s_anchorIndentationOperationPool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
23
var block = s_pool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (6)
65
var logMessage = s_pool.
Allocate
();
95
var logMessage = s_pool.
Allocate
();
126
var logMessage = s_pool.
Allocate
();
160
var logMessage = s_pool.
Allocate
();
197
var logMessage = s_pool.
Allocate
();
237
var logMessage = s_pool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (10)
91
=> new(pool, p => p.
Allocate
(), (p, o) => p.Free(o));
95
var sb = pool.
Allocate
();
103
var set = pool.
Allocate
();
111
var set = pool.
Allocate
();
119
var set = pool.
Allocate
();
127
var set = pool.
Allocate
();
135
var set = pool.
Allocate
();
144
var map = pool.
Allocate
();
152
var list = pool.
Allocate
();
160
var list = pool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
27
=> new(s_objectListPool.
Allocate
());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.WriterReferenceMap.cs (1)
26
_valueToIdMap = s_valueDictionaryPool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
361
var reader = s_readerPool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
100
var visitor = s_writerPool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (2)
46
var chunk = SharedPools.ByteArray.
Allocate
();
314
var chunk = SharedPools.ByteArray.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.cs (1)
19
=> _pool.
Allocate
();
Utilities\SegmentedListPool.cs (1)
17
var result = p.
Allocate
();
Workspace\Solution\ProjectDependencyGraph.cs (1)
223
builder = s_reverseReferencesBuilderPool.
Allocate
();