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(); 2847_pool.Free(modifiers); 3107var modifiers = _pool.Allocate(); 3247_pool.Free(modifiers); 3554constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3593_pool.ToListAndFree(constraints), 4242var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4262accessors = _pool.ToListAndFree(builder); 4462var nodes = _pool.Allocate(); 4478trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4488var nodes = _pool.Allocate(); 4504trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4517var accMods = _pool.Allocate(); 4600_pool.ToTokenListAndFree(accMods), 4821var modifiers = _pool.Allocate(); 4859_pool.ToTokenListAndFree(modifiers), 5127var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5147return _pool.ToListAndFree(variables); 5517var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5537argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5648constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5662_pool.ToListAndFree(constraints), 5687var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5691_pool.ToListAndFree(tmpList)); 6019var types = _pool.AllocateSeparated<TypeSyntax>(); 6025_pool.ToListAndFree(types), 7300var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7323_pool.Free(ignoredModifiers); 7477var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7484type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7683var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7734_pool.ToListAndFree(list), 7741var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7768_pool.ToListAndFree(list), 7834var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7846_pool.ToListAndFree(missingTypes), 7853var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7859var modifiers = _pool.Allocate<SyntaxToken>(); 7865_pool.ToTokenListAndFree(modifiers), 7883_pool.ToListAndFree(types), 7938var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 7961_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8887var statements = _pool.Allocate<StatementSyntax>(); 8899_pool.Free(statements); 8918var statements = _pool.Allocate<StatementSyntax>(); 8924_pool.ToListAndFree(statements), 9186catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9215_pool.ToListAndFree(catchClauses), 9494var skippedTokens = _pool.Allocate(); 9500return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 9939var sections = _pool.Allocate<SwitchSectionSyntax>(); 9951_pool.ToListAndFree(sections), 10015var labels = _pool.Allocate<SwitchLabelSyntax>(); 10016var statements = _pool.Allocate<StatementSyntax>(); 10078_pool.ToListAndFree(labels), 10079_pool.ToListAndFree(statements)); 10277var mods = _pool.Allocate(); 10280var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10352_pool.Free(variables); 10353_pool.Free(mods); 10423var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10454_pool.ToListAndFree(listOfDesignations), 10497var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10513_pool.ToListAndFree(variables)); 10745badBuilder = _pool.Allocate(); 10755_pool.Free(badBuilder); 10777constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12277var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12279arguments = _pool.ToListAndFree(list); 12523SyntaxListBuilder modifiers = _pool.Allocate(); 12525_pool.Free(modifiers); 12625var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12653_pool.ToListAndFree(list), 13335var commas = _pool.Allocate(); 13365_pool.ToTokenListAndFree(commas), 13510var modifiers = _pool.Allocate(); 13530return _pool.ToTokenListAndFree(modifiers); 13701SyntaxListBuilder modifiers = _pool.Allocate(); 13718_pool.ToTokenListAndFree(modifiers), 13887var clauses = _pool.Allocate<QueryClauseSyntax>(); 13926_pool.ToListAndFree(clauses), 14012var list = _pool.AllocateSeparated<OrderingSyntax>(); 14037_pool.ToListAndFree(list)); 14218var nodes = _pool.AllocateSeparated<TNode>(); 14286return _pool.ToListAndFree(nodes); 14386SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14393_pool.Free(b);
Parser\LanguageParser_InterpolatedString.cs (2)
92var builder = _pool.Allocate<InterpolatedStringContentSyntax>(); 124_pool.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
582var arms = _pool.AllocateSeparated<SwitchExpressionArmSyntax>(); 631return _pool.ToListAndFree(arms);