123 references to _pool
Microsoft.CodeAnalysis.CSharp (123)
Parser\LanguageParser_InterpolatedString.cs (2)
194var builder = _pool.Allocate<InterpolatedStringContentSyntax>(); 226_pool.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
607var arms = _pool.AllocateSeparated<SwitchExpressionArmSyntax>(); 656return _pool.ToListAndFree(arms);
Parser\LanguageParser.cs (119)
184var body = new NamespaceBodyBuilder(_pool); 196_pool.Free(initialBadNodes); 203body.Free(_pool); 284var body = new NamespaceBodyBuilder(_pool); 326body.Free(_pool); 391initialBadNodes = _pool.Allocate(); 433var finalMembers = _pool.Allocate<MemberDeclarationSyntax>(); 469_pool.Free(body.Members); 502var finalTypeDeclarationMembers = _pool.Allocate<MemberDeclarationSyntax>(); 529var newMembers = _pool.ToListAndFree(finalTypeDeclarationMembers); 577var pendingIncompleteMembers = _pool.Allocate<MemberDeclarationSyntax>(); 592var attributeLists = _pool.Allocate<AttributeListSyntax>(); 593var modifiers = _pool.Allocate(); 597_pool.Free(attributeLists); 598_pool.Free(modifiers); 773_pool.Free(pendingIncompleteMembers); 1079var attributes = _pool.Allocate<AttributeListSyntax>(); 1091return _pool.ToListAndFree(attributes); 1841constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 1870members = _pool.Allocate<MemberDeclarationSyntax>(); 1922_pool.Free(members); 1927_pool.Free(constraints); 2102var tokens = _pool.Allocate(); 2156_pool.ToTokenListAndFree(tokens).Node); 2179var list = _pool.AllocateSeparated<BaseTypeSyntax>(); 2223return _syntaxFactory.BaseList(colon, _pool.ToListAndFree(list)); 2259var bounds = _pool.AllocateSeparated<TypeParameterConstraintSyntax>(); 2316_pool.ToListAndFree(bounds)); 2397var bounds = _pool.AllocateSeparated<AllowsConstraintSyntax>(); 2415return _syntaxFactory.AllowsConstraintClause(allows, _pool.ToListAndFree(bounds)); 2608var modifiers = _pool.Allocate(); 2913_pool.Free(modifiers); 3250var modifiers = _pool.Allocate(); 3391_pool.Free(modifiers); 3696constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3732_pool.ToListAndFree(constraints), 4386var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4402accessors = _pool.ToListAndFree(builder); 4447var modifiers = _pool.Allocate(); 4450_pool.Free(modifiers); 4589var nodes = _pool.Allocate(); 4605trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4615var nodes = _pool.Allocate(); 4631trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4644var accMods = _pool.Allocate(); 4727_pool.ToTokenListAndFree(accMods), 4950var modifiers = _pool.Allocate(); 4988_pool.ToTokenListAndFree(modifiers), 5274var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5294return _pool.ToListAndFree(variables); 5661var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5681argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5853constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5867_pool.ToListAndFree(constraints), 5892var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5896_pool.ToListAndFree(tmpList)); 6209var types = _pool.AllocateSeparated<TypeSyntax>(); 6215_pool.ToListAndFree(types), 7485var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7508_pool.Free(ignoredModifiers); 7662var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7669type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7868var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7919_pool.ToListAndFree(list), 7926var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7953_pool.ToListAndFree(list), 8019var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8031_pool.ToListAndFree(missingTypes), 8038var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8044var modifiers = _pool.Allocate<SyntaxToken>(); 8050_pool.ToTokenListAndFree(modifiers), 8068_pool.ToListAndFree(types), 8123var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 8146_pool.ToListAndFree(callingConventionModifiers), closeBracket); 9081var statements = _pool.Allocate<StatementSyntax>(); 9093_pool.Free(statements); 9112var statements = _pool.Allocate<StatementSyntax>(); 9118_pool.ToListAndFree(statements), 9382catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9411_pool.ToListAndFree(catchClauses), 9690var skippedTokens = _pool.Allocate(); 9696return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 10168var sections = _pool.Allocate<SwitchSectionSyntax>(); 10180_pool.ToListAndFree(sections), 10244var labels = _pool.Allocate<SwitchLabelSyntax>(); 10245var statements = _pool.Allocate<StatementSyntax>(); 10307_pool.ToListAndFree(labels), 10308_pool.ToListAndFree(statements)); 10506var mods = _pool.Allocate(); 10509var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10581_pool.Free(variables); 10582_pool.Free(mods); 10654var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10685_pool.ToListAndFree(listOfDesignations), 10728var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10744_pool.ToListAndFree(variables)); 10977badBuilder = _pool.Allocate(); 10987_pool.Free(badBuilder); 11011constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12530var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12532arguments = _pool.ToListAndFree(list); 12785SyntaxListBuilder modifiers = _pool.Allocate(); 12787_pool.Free(modifiers); 12887var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12915_pool.ToListAndFree(list), 13627var commas = _pool.Allocate(); 13657_pool.ToTokenListAndFree(commas), 13791var modifiers = _pool.Allocate(); 13825return _pool.ToTokenListAndFree(modifiers); 14016SyntaxListBuilder modifiers = _pool.Allocate(); 14033_pool.ToTokenListAndFree(modifiers), 14199var clauses = _pool.Allocate<QueryClauseSyntax>(); 14237_pool.ToListAndFree(clauses), 14323var list = _pool.AllocateSeparated<OrderingSyntax>(); 14348_pool.ToListAndFree(list)); 14529var nodes = _pool.AllocateSeparated<TNode>(); 14597return _pool.ToListAndFree(nodes); 14697SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14704_pool.Free(b);