93 references to Allocate
Microsoft.CodeAnalysis (47)
ArrayBuilder.cs (1)
393var builder = s_poolInstance.Allocate();
CodeGen\LocalScopeManager.cs (1)
393var block = BasicBlock.Pool.Allocate();
Collections\OrderPreservingMultiDictionary.cs (1)
67var instance = s_poolInstance.Allocate();
CommandLine\AnalyzerConfigSet.cs (5)
196var sectionKey = _sectionKeyPool.Allocate(); 254var treeOptionsBuilder = _treeOptionsPool.Allocate(); 255var analyzerOptionsBuilder = _analyzerOptionsPool.Allocate(); 382var treeOptionsBuilder = _treeOptionsPool.Allocate(); 383var analyzerOptionsBuilder = _analyzerOptionsPool.Allocate();
Diagnostic\DiagnosticBag.cs (1)
319DiagnosticBag bag = s_poolInstance.Allocate();
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
39var item = s_objectPool.Allocate();
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (3)
306AsyncQueue<CompilationEvent> eventQueue = _eventQueuePool.Allocate(); 1078AnalyzerDriver driver = _driverPool.Allocate(); 1132var eventQueue = eventQueuePool.Allocate();
DocumentationCommentId.cs (10)
97var results = s_symbolListPool.Allocate(); 148var results = s_symbolListPool.Allocate(); 175var results = s_symbolListPool.Allocate(); 236var results = s_symbolListPool.Allocate(); 727var containers = s_namespaceOrTypeListPool.Allocate(); 824var results = s_symbolListPool.Allocate(); 851var contexts = s_symbolListPool.Allocate(); 970var containers = s_namespaceOrTypeListPool.Allocate(); 1182var parameters = s_parameterListPool.Allocate(); 1271parameters = s_parameterListPool.Allocate();
DocumentationComments\XmlDocumentationCommentTextReader.cs (1)
28var reader = s_pool.Allocate();
InternalUtilities\BlobBuildingStream.cs (1)
53return s_pool.Allocate();
InternalUtilities\StringTable.cs (1)
100return s_staticPool.Allocate();
InternalUtilities\TextKeyedCache.cs (1)
102return s_staticPool.Allocate();
PEWriter\PooledBlobBuilder.cs (2)
26return s_chunkPool.Allocate(); 33return s_chunkPool.Allocate();
PooledDelegates.cs (1)
26var obj = DefaultDelegatePool<TPooled>.Instance.Allocate();
PooledDictionary.cs (1)
52var instance = s_poolInstance.Allocate();
PooledHashSet.cs (1)
41var instance = s_poolInstance.Allocate();
PooledStringBuilder.cs (1)
90var builder = s_poolInstance.Allocate();
Serialization\ObjectReader.cs (1)
328=> new(s_objectListPool.Allocate());
Serialization\ObjectWriter.cs (1)
401_valueToIdMap = GetDictionaryPool(valueEquality).Allocate();
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (2)
174var seenNames = s_stringStackPool.Allocate(); 238var nodeStack = s_nodeStackPool.Allocate();
Syntax\SyntaxNavigator.cs (2)
97var stack = s_childEnumeratorStackPool.Allocate(); 143var stack = s_childReversedEnumeratorStackPool.Allocate();
Syntax\SyntaxNode.Iterators.cs (2)
56_stack = s_stackPool.Allocate(); 165_stack = s_stackPool.Allocate();
Syntax\SyntaxTriviaList.cs (1)
277=> s_builderPool.Allocate();
Text\CompositeText.cs (1)
331var uniqueSources = s_uniqueSourcesPool.Allocate();
Text\SourceText.cs (4)
542var buffer = s_charArrayPool.Allocate(); 936var buffer = s_charArrayPool.Allocate(); 1065var buffer1 = s_charArrayPool.Allocate(); 1066var buffer2 = s_charArrayPool.Allocate();
Microsoft.CodeAnalysis.CSharp (24)
Binder\BinderFactory.cs (4)
132BinderFactoryVisitor visitor = _binderFactoryVisitorPool.Allocate(); 162BinderFactoryVisitor visitor = _binderFactoryVisitorPool.Allocate(); 177BinderFactoryVisitor visitor = _binderFactoryVisitorPool.Allocate(); 187BinderFactoryVisitor visitor = _binderFactoryVisitorPool.Allocate();
Binder\ExpressionVariableFinder.cs (3)
503ExpressionVariableFinder finder = s_poolInstance.Allocate(); 524ExpressionVariableFinder finder = s_poolInstance.Allocate(); 635ExpressionFieldFinder finder = s_poolInstance.Allocate();
Binder\LookupResult.cs (1)
310var instance = s_poolInstance.Allocate();
Binder\LookupSymbolsInfo.cs (1)
37var info = s_pool.Allocate();
Binder\Semantics\Operators\BinaryOperatorOverloadResolutionResult.cs (1)
126return Pool.Allocate();
Binder\Semantics\Operators\UnaryOperatorOverloadResolutionResult.cs (1)
126return Pool.Allocate();
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (1)
133return Pool.Allocate();
Binder\Semantics\OverloadResolution\MethodGroup.cs (1)
136return Pool.Allocate();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
63var instance = s_poolInstance.Allocate();
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1510return s_pool.Allocate();
CodeGen\Optimizer.cs (1)
298var instance = s_poolInstance.Allocate();
Declarations\DeclarationTreeBuilder.cs (2)
804var memberNamesBuilder = s_memberNameBuilderPool.Allocate(); 836var memberNameBuilder = s_memberNameBuilderPool.Allocate();
Parser\LexerCache.cs (1)
44_keywordKindMap = s_keywordKindPool.Allocate();
Parser\SlidingTextWindow.cs (1)
70_characterWindow = s_windowPool.Allocate();
Parser\SyntaxParser.cs (1)
62_blendedTokens = s_blendedNodesPool.Allocate();
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3923var memberSignatures = s_duplicateRecordMemberSignatureDictionary.Allocate();
Symbols\SpecializedSymbolCollections.cs (2)
15var instance = PooledSymbolHashSet<TSymbol>.s_poolInstance.Allocate(); 27var instance = PooledSymbolDictionary<KSymbol, V>.s_poolInstance.Allocate();
Microsoft.CodeAnalysis.VisualBasic (14)
Binding\BinderFactory.vb (1)
53Dim visitor = _binderFactoryVisitorPool.Allocate()
Binding\LookupResult.vb (1)
353Return s_poolInstance.Allocate()
Compilation\LookupSymbolsInfo.vb (1)
29Dim info As LookupSymbolsInfo = s_pool.Allocate()
Declarations\DeclarationTreeBuilder.vb (2)
619Dim results = s_memberNameBuilderPool.Allocate() 714Dim results = s_memberNameBuilderPool.Allocate()
Scanner\Scanner.vb (7)
60Private ReadOnly _KeywordsObjs As CachingIdentityFactory(Of String, SyntaxKind) = s_keywordsObjsPool.Allocate() 65Private ReadOnly _idTable As CachingFactory(Of TokenParts, IdentifierTokenSyntax) = s_idTablePool.Allocate() 70Private ReadOnly _kwTable As CachingFactory(Of TokenParts, KeywordSyntax) = s_kwTablePool.Allocate 75Private ReadOnly _punctTable As CachingFactory(Of TokenParts, PunctuationSyntax) = s_punctTablePool.Allocate() 80Private ReadOnly _literalTable As CachingFactory(Of TokenParts, SyntaxToken) = s_literalTablePool.Allocate 85Private ReadOnly _wslTable As CachingFactory(Of SyntaxListBuilder, CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) = s_wslTablePool.Allocate 90Private ReadOnly _wsTable As CachingFactory(Of TriviaKey, SyntaxTrivia) = s_wsTablePool.Allocate
Scanner\ScannerBuffer.vb (1)
51Dim instance = s_poolInstance.Allocate()
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2057Return s_pool.Allocate()
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (8)
CompilationTestUtils.vb (5)
871Dim messages = ParserTestUtilities.PooledStringBuilderPool.Allocate() 917Dim expectedPooledBuilder = PooledStringBuilderPool.Allocate() 918Dim actualPooledBuilder = PooledStringBuilderPool.Allocate() 978Dim builder = PooledStringBuilderPool.Allocate() 1215Dim builder = PooledStringBuilderPool.Allocate()
ParserTestUtilities.vb (3)
84Dim errors = PooledStringBuilderPool.Allocate() 572Dim errorString = PooledStringBuilderPool.Allocate() 654Dim errorMessage = PooledStringBuilderPool.Allocate()