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); 5782constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5796_pool.ToListAndFree(constraints), 5821var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5825_pool.ToListAndFree(tmpList)); 6151var types = _pool.AllocateSeparated<TypeSyntax>(); 6157_pool.ToListAndFree(types), 7432var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7455_pool.Free(ignoredModifiers); 7609var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7616type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7815var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7866_pool.ToListAndFree(list), 7873var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7900_pool.ToListAndFree(list), 7966var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7978_pool.ToListAndFree(missingTypes), 7985var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7991var modifiers = _pool.Allocate<SyntaxToken>(); 7997_pool.ToTokenListAndFree(modifiers), 8015_pool.ToListAndFree(types), 8070var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 8093_pool.ToListAndFree(callingConventionModifiers), closeBracket); 9018var statements = _pool.Allocate<StatementSyntax>(); 9030_pool.Free(statements); 9049var statements = _pool.Allocate<StatementSyntax>(); 9055_pool.ToListAndFree(statements), 9317catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9346_pool.ToListAndFree(catchClauses), 9625var skippedTokens = _pool.Allocate(); 9631return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 10103var sections = _pool.Allocate<SwitchSectionSyntax>(); 10115_pool.ToListAndFree(sections), 10179var labels = _pool.Allocate<SwitchLabelSyntax>(); 10180var statements = _pool.Allocate<StatementSyntax>(); 10242_pool.ToListAndFree(labels), 10243_pool.ToListAndFree(statements)); 10441var mods = _pool.Allocate(); 10444var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10516_pool.Free(variables); 10517_pool.Free(mods); 10587var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10618_pool.ToListAndFree(listOfDesignations), 10661var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10677_pool.ToListAndFree(variables)); 10906badBuilder = _pool.Allocate(); 10916_pool.Free(badBuilder); 10940constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12440var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12442arguments = _pool.ToListAndFree(list); 12686SyntaxListBuilder modifiers = _pool.Allocate(); 12688_pool.Free(modifiers); 12788var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12816_pool.ToListAndFree(list), 13498var commas = _pool.Allocate(); 13528_pool.ToTokenListAndFree(commas), 13662var modifiers = _pool.Allocate(); 13682return _pool.ToTokenListAndFree(modifiers); 13844SyntaxListBuilder modifiers = _pool.Allocate(); 13861_pool.ToTokenListAndFree(modifiers), 14027var clauses = _pool.Allocate<QueryClauseSyntax>(); 14065_pool.ToListAndFree(clauses), 14151var list = _pool.AllocateSeparated<OrderingSyntax>(); 14176_pool.ToListAndFree(list)); 14357var nodes = _pool.AllocateSeparated<TNode>(); 14425return _pool.ToListAndFree(nodes); 14525SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14532_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);