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), 4894var modifiers = _pool.Allocate(); 4932_pool.ToTokenListAndFree(modifiers), 5200var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5220return _pool.ToListAndFree(variables); 5590var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5610argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5721constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5735_pool.ToListAndFree(constraints), 5760var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5764_pool.ToListAndFree(tmpList)); 6092var types = _pool.AllocateSeparated<TypeSyntax>(); 6098_pool.ToListAndFree(types), 7373var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7396_pool.Free(ignoredModifiers); 7550var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7557type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7756var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7807_pool.ToListAndFree(list), 7814var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7841_pool.ToListAndFree(list), 7907var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7919_pool.ToListAndFree(missingTypes), 7926var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7932var modifiers = _pool.Allocate<SyntaxToken>(); 7938_pool.ToTokenListAndFree(modifiers), 7956_pool.ToListAndFree(types), 8011var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 8034_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8959var statements = _pool.Allocate<StatementSyntax>(); 8971_pool.Free(statements); 8990var statements = _pool.Allocate<StatementSyntax>(); 8996_pool.ToListAndFree(statements), 9258catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9287_pool.ToListAndFree(catchClauses), 9566var skippedTokens = _pool.Allocate(); 9572return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 10011var sections = _pool.Allocate<SwitchSectionSyntax>(); 10023_pool.ToListAndFree(sections), 10087var labels = _pool.Allocate<SwitchLabelSyntax>(); 10088var statements = _pool.Allocate<StatementSyntax>(); 10150_pool.ToListAndFree(labels), 10151_pool.ToListAndFree(statements)); 10349var mods = _pool.Allocate(); 10352var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10424_pool.Free(variables); 10425_pool.Free(mods); 10495var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10526_pool.ToListAndFree(listOfDesignations), 10569var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10585_pool.ToListAndFree(variables)); 10814badBuilder = _pool.Allocate(); 10824_pool.Free(badBuilder); 10848constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12348var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12350arguments = _pool.ToListAndFree(list); 12594SyntaxListBuilder modifiers = _pool.Allocate(); 12596_pool.Free(modifiers); 12696var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12724_pool.ToListAndFree(list), 13406var commas = _pool.Allocate(); 13436_pool.ToTokenListAndFree(commas), 13570var modifiers = _pool.Allocate(); 13590return _pool.ToTokenListAndFree(modifiers); 13752SyntaxListBuilder modifiers = _pool.Allocate(); 13769_pool.ToTokenListAndFree(modifiers), 13935var clauses = _pool.Allocate<QueryClauseSyntax>(); 13973_pool.ToListAndFree(clauses), 14059var list = _pool.AllocateSeparated<OrderingSyntax>(); 14084_pool.ToListAndFree(list)); 14265var nodes = _pool.AllocateSeparated<TNode>(); 14333return _pool.ToListAndFree(nodes); 14433SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14440_pool.Free(b);
Parser\LanguageParser_InterpolatedString.cs (2)
194var builder = _pool.Allocate<InterpolatedStringContentSyntax>(); 226_pool.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
582var arms = _pool.AllocateSeparated<SwitchExpressionArmSyntax>(); 631return _pool.ToListAndFree(arms);