119 references to _pool
Microsoft.CodeAnalysis.CSharp (119)
Parser\LanguageParser.cs (115)
182var body = new NamespaceBodyBuilder(_pool); 194_pool.Free(initialBadNodes); 201body.Free(_pool); 282var body = new NamespaceBodyBuilder(_pool); 324body.Free(_pool); 389initialBadNodes = _pool.Allocate(); 422var pendingIncompleteMembers = _pool.Allocate<MemberDeclarationSyntax>(); 435var attributeLists = _pool.Allocate<AttributeListSyntax>(); 436var modifiers = _pool.Allocate(); 440_pool.Free(attributeLists); 441_pool.Free(modifiers); 598_pool.Free(pendingIncompleteMembers); 870var attributes = _pool.Allocate<AttributeListSyntax>(); 879return _pool.ToListAndFree(attributes); 1483constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 1512members = _pool.Allocate<MemberDeclarationSyntax>(); 1570_pool.Free(members); 1575_pool.Free(constraints); 1715var tokens = _pool.Allocate(); 1769_pool.ToTokenListAndFree(tokens).Node); 1789var list = _pool.AllocateSeparated<BaseTypeSyntax>(); 1823return _syntaxFactory.BaseList(colon, _pool.ToListAndFree(list)); 1859var bounds = _pool.AllocateSeparated<TypeParameterConstraintSyntax>(); 1904_pool.ToListAndFree(bounds)); 2160var modifiers = _pool.Allocate(); 2470_pool.Free(modifiers); 2723var modifiers = _pool.Allocate(); 2858_pool.Free(modifiers); 3149constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3188_pool.ToListAndFree(constraints), 3731var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 3751accessors = _pool.ToListAndFree(builder); 3951var nodes = _pool.Allocate(); 3967trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 3977var nodes = _pool.Allocate(); 3993trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4004var accMods = _pool.Allocate(); 4087_pool.ToTokenListAndFree(accMods), 4295var modifiers = _pool.Allocate(); 4333_pool.ToTokenListAndFree(modifiers), 4479var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 4486_syntaxFactory.VariableDeclaration(type, _pool.ToListAndFree(variables)), 4621var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 4637_syntaxFactory.VariableDeclaration(type, _pool.ToListAndFree(variables)), 4668var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 4683_syntaxFactory.VariableDeclaration(type, _pool.ToListAndFree(variables)), 5056var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5076argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5164var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5169_syntaxFactory.VariableDeclaration(type, _pool.ToListAndFree(variables)), 5188constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5202_pool.ToListAndFree(constraints), 5227var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5231_pool.ToListAndFree(tmpList)); 5552var types = _pool.AllocateSeparated<TypeSyntax>(); 5558_pool.ToListAndFree(types), 6753var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 6776_pool.Free(ignoredModifiers); 6944var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 6951type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7028var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7083_pool.ToListAndFree(list), 7090var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7117_pool.ToListAndFree(list), 7183var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7195_pool.ToListAndFree(missingTypes), 7202var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7208var modifiers = _pool.Allocate<SyntaxToken>(); 7214_pool.ToTokenListAndFree(modifiers), 7232_pool.ToListAndFree(types), 7287var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 7310_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8078var statements = _pool.Allocate<StatementSyntax>(); 8090_pool.Free(statements); 8109var statements = _pool.Allocate<StatementSyntax>(); 8115_pool.ToListAndFree(statements), 8367catchClauses = _pool.Allocate<CatchClauseSyntax>(); 8396_pool.ToListAndFree(catchClauses), 9069var sections = _pool.Allocate<SwitchSectionSyntax>(); 9081_pool.ToListAndFree(sections), 9145var labels = _pool.Allocate<SwitchLabelSyntax>(); 9146var statements = _pool.Allocate<StatementSyntax>(); 9208_pool.ToListAndFree(labels), 9209_pool.ToListAndFree(statements)); 9408var mods = _pool.Allocate(); 9411var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 9469_syntaxFactory.VariableDeclaration(type, _pool.ToListAndFree(variables)), 9474_pool.Free(mods); 9518var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 9549_pool.ToListAndFree(listOfDesignations), 9589var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 9596_pool.ToListAndFree(variables)); 9818badBuilder = _pool.Allocate(); 9828_pool.Free(badBuilder); 9850constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 11104var list = _pool.AllocateSeparated<ArgumentSyntax>(); 11106arguments = _pool.ToListAndFree(list); 11414SyntaxListBuilder modifiers = _pool.Allocate(); 11417_pool.Free(modifiers); 11510var list = _pool.AllocateSeparated<ArgumentSyntax>(); 11538_pool.ToListAndFree(list), 12158var commas = _pool.Allocate(); 12188_pool.ToTokenListAndFree(commas), 12326var modifiers = _pool.Allocate(); 12346return _pool.ToTokenListAndFree(modifiers); 12528SyntaxListBuilder modifiers = _pool.Allocate(); 12547_pool.ToTokenListAndFree(modifiers), 12716var clauses = _pool.Allocate<QueryClauseSyntax>(); 12755_pool.ToListAndFree(clauses), 12838var list = _pool.AllocateSeparated<OrderingSyntax>(); 12863_pool.ToListAndFree(list)); 13022var nodes = _pool.AllocateSeparated<TNode>(); 13082return _pool.ToListAndFree(nodes); 13175SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 13182_pool.Free(b);
Parser\LanguageParser_InterpolatedString.cs (2)
97var builder = _pool.Allocate<InterpolatedStringContentSyntax>(); 129_pool.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
560var arms = _pool.AllocateSeparated<SwitchExpressionArmSyntax>(); 605return _pool.ToListAndFree(arms);