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(); 2846_pool.Free(modifiers); 3106var modifiers = _pool.Allocate(); 3246_pool.Free(modifiers); 3543constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3582_pool.ToListAndFree(constraints), 4213var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4233accessors = _pool.ToListAndFree(builder); 4433var nodes = _pool.Allocate(); 4449trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4459var nodes = _pool.Allocate(); 4475trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4488var accMods = _pool.Allocate(); 4571_pool.ToTokenListAndFree(accMods), 4793var modifiers = _pool.Allocate(); 4831_pool.ToTokenListAndFree(modifiers), 5099var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5119return _pool.ToListAndFree(variables); 5489var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5509argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5620constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5634_pool.ToListAndFree(constraints), 5659var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5663_pool.ToListAndFree(tmpList)); 5991var types = _pool.AllocateSeparated<TypeSyntax>(); 5997_pool.ToListAndFree(types), 7272var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7295_pool.Free(ignoredModifiers); 7449var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7456type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7655var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7706_pool.ToListAndFree(list), 7713var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7740_pool.ToListAndFree(list), 7806var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7818_pool.ToListAndFree(missingTypes), 7825var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7831var modifiers = _pool.Allocate<SyntaxToken>(); 7837_pool.ToTokenListAndFree(modifiers), 7855_pool.ToListAndFree(types), 7910var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 7933_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8803var statements = _pool.Allocate<StatementSyntax>(); 8815_pool.Free(statements); 8834var statements = _pool.Allocate<StatementSyntax>(); 8840_pool.ToListAndFree(statements), 9102catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9131_pool.ToListAndFree(catchClauses), 9410var skippedTokens = _pool.Allocate(); 9416return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 9855var sections = _pool.Allocate<SwitchSectionSyntax>(); 9867_pool.ToListAndFree(sections), 9931var labels = _pool.Allocate<SwitchLabelSyntax>(); 9932var statements = _pool.Allocate<StatementSyntax>(); 9994_pool.ToListAndFree(labels), 9995_pool.ToListAndFree(statements)); 10193var mods = _pool.Allocate(); 10196var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10268_pool.Free(variables); 10269_pool.Free(mods); 10339var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10370_pool.ToListAndFree(listOfDesignations), 10413var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10429_pool.ToListAndFree(variables)); 10663badBuilder = _pool.Allocate(); 10673_pool.Free(badBuilder); 10695constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12195var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12197arguments = _pool.ToListAndFree(list); 12441SyntaxListBuilder modifiers = _pool.Allocate(); 12443_pool.Free(modifiers); 12543var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12571_pool.ToListAndFree(list), 13253var commas = _pool.Allocate(); 13283_pool.ToTokenListAndFree(commas), 13428var modifiers = _pool.Allocate(); 13448return _pool.ToTokenListAndFree(modifiers); 13619SyntaxListBuilder modifiers = _pool.Allocate(); 13636_pool.ToTokenListAndFree(modifiers), 13805var clauses = _pool.Allocate<QueryClauseSyntax>(); 13844_pool.ToListAndFree(clauses), 13927var list = _pool.AllocateSeparated<OrderingSyntax>(); 13952_pool.ToListAndFree(list)); 14133var nodes = _pool.AllocateSeparated<TNode>(); 14201return _pool.ToListAndFree(nodes); 14301SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14308_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);