121 references to _pool
Microsoft.CodeAnalysis.CSharp (121)
Parser\LanguageParser.cs (117)
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); 1094var attributes = _pool.Allocate<AttributeListSyntax>(); 1106return _pool.ToListAndFree(attributes); 1778constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 1807members = _pool.Allocate<MemberDeclarationSyntax>(); 1859_pool.Free(members); 1864_pool.Free(constraints); 2023var tokens = _pool.Allocate(); 2077_pool.ToTokenListAndFree(tokens).Node); 2100var list = _pool.AllocateSeparated<BaseTypeSyntax>(); 2149return _syntaxFactory.BaseList(colon, _pool.ToListAndFree(list)); 2185var bounds = _pool.AllocateSeparated<TypeParameterConstraintSyntax>(); 2242_pool.ToListAndFree(bounds)); 2323var bounds = _pool.AllocateSeparated<AllowsConstraintSyntax>(); 2341return _syntaxFactory.AllowsConstraintClause(allows, _pool.ToListAndFree(bounds)); 2536var modifiers = _pool.Allocate(); 2836_pool.Free(modifiers); 3173var modifiers = _pool.Allocate(); 3314_pool.Free(modifiers); 3619constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3655_pool.ToListAndFree(constraints), 4315var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4335accessors = _pool.ToListAndFree(builder); 4535var nodes = _pool.Allocate(); 4551trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4561var nodes = _pool.Allocate(); 4577trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4590var accMods = _pool.Allocate(); 4673_pool.ToTokenListAndFree(accMods), 4896var modifiers = _pool.Allocate(); 4934_pool.ToTokenListAndFree(modifiers), 5220var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5240return _pool.ToListAndFree(variables); 5610var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5630argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5802constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5816_pool.ToListAndFree(constraints), 5841var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5845_pool.ToListAndFree(tmpList)); 6171var types = _pool.AllocateSeparated<TypeSyntax>(); 6177_pool.ToListAndFree(types), 7452var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7475_pool.Free(ignoredModifiers); 7629var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7636type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7835var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7886_pool.ToListAndFree(list), 7893var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7920_pool.ToListAndFree(list), 7986var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7998_pool.ToListAndFree(missingTypes), 8005var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8011var modifiers = _pool.Allocate<SyntaxToken>(); 8017_pool.ToTokenListAndFree(modifiers), 8035_pool.ToListAndFree(types), 8090var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 8113_pool.ToListAndFree(callingConventionModifiers), closeBracket); 9032var statements = _pool.Allocate<StatementSyntax>(); 9044_pool.Free(statements); 9063var statements = _pool.Allocate<StatementSyntax>(); 9069_pool.ToListAndFree(statements), 9331catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9360_pool.ToListAndFree(catchClauses), 9639var skippedTokens = _pool.Allocate(); 9645return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 10117var sections = _pool.Allocate<SwitchSectionSyntax>(); 10129_pool.ToListAndFree(sections), 10193var labels = _pool.Allocate<SwitchLabelSyntax>(); 10194var statements = _pool.Allocate<StatementSyntax>(); 10256_pool.ToListAndFree(labels), 10257_pool.ToListAndFree(statements)); 10455var mods = _pool.Allocate(); 10458var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10530_pool.Free(variables); 10531_pool.Free(mods); 10603var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10634_pool.ToListAndFree(listOfDesignations), 10677var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10693_pool.ToListAndFree(variables)); 10922badBuilder = _pool.Allocate(); 10932_pool.Free(badBuilder); 10956constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12471var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12473arguments = _pool.ToListAndFree(list); 12717SyntaxListBuilder modifiers = _pool.Allocate(); 12719_pool.Free(modifiers); 12819var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12847_pool.ToListAndFree(list), 13529var commas = _pool.Allocate(); 13559_pool.ToTokenListAndFree(commas), 13693var modifiers = _pool.Allocate(); 13713return _pool.ToTokenListAndFree(modifiers); 13875SyntaxListBuilder modifiers = _pool.Allocate(); 13892_pool.ToTokenListAndFree(modifiers), 14058var clauses = _pool.Allocate<QueryClauseSyntax>(); 14096_pool.ToListAndFree(clauses), 14182var list = _pool.AllocateSeparated<OrderingSyntax>(); 14207_pool.ToListAndFree(list)); 14388var nodes = _pool.AllocateSeparated<TNode>(); 14456return _pool.ToListAndFree(nodes); 14556SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14563_pool.Free(b);
Parser\LanguageParser_InterpolatedString.cs (2)
194var builder = _pool.Allocate<InterpolatedStringContentSyntax>(); 226_pool.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
605var arms = _pool.AllocateSeparated<SwitchExpressionArmSyntax>(); 654return _pool.ToListAndFree(arms);