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); 1095var attributes = _pool.Allocate<AttributeListSyntax>(); 1107return _pool.ToListAndFree(attributes); 1804constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 1833members = _pool.Allocate<MemberDeclarationSyntax>(); 1885_pool.Free(members); 1890_pool.Free(constraints); 2051var tokens = _pool.Allocate(); 2105_pool.ToTokenListAndFree(tokens).Node); 2128var list = _pool.AllocateSeparated<BaseTypeSyntax>(); 2177return _syntaxFactory.BaseList(colon, _pool.ToListAndFree(list)); 2213var bounds = _pool.AllocateSeparated<TypeParameterConstraintSyntax>(); 2270_pool.ToListAndFree(bounds)); 2351var bounds = _pool.AllocateSeparated<AllowsConstraintSyntax>(); 2369return _syntaxFactory.AllowsConstraintClause(allows, _pool.ToListAndFree(bounds)); 2578var modifiers = _pool.Allocate(); 2878_pool.Free(modifiers); 3215var modifiers = _pool.Allocate(); 3356_pool.Free(modifiers); 3661constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3697_pool.ToListAndFree(constraints), 4357var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4377accessors = _pool.ToListAndFree(builder); 4577var nodes = _pool.Allocate(); 4593trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4603var nodes = _pool.Allocate(); 4619trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4632var accMods = _pool.Allocate(); 4715_pool.ToTokenListAndFree(accMods), 4938var modifiers = _pool.Allocate(); 4976_pool.ToTokenListAndFree(modifiers), 5262var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5282return _pool.ToListAndFree(variables); 5653var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5673argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5845constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5859_pool.ToListAndFree(constraints), 5884var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5888_pool.ToListAndFree(tmpList)); 6214var types = _pool.AllocateSeparated<TypeSyntax>(); 6220_pool.ToListAndFree(types), 7495var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7518_pool.Free(ignoredModifiers); 7672var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7679type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7878var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7929_pool.ToListAndFree(list), 7936var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7963_pool.ToListAndFree(list), 8029var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8041_pool.ToListAndFree(missingTypes), 8048var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8054var modifiers = _pool.Allocate<SyntaxToken>(); 8060_pool.ToTokenListAndFree(modifiers), 8078_pool.ToListAndFree(types), 8133var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 8156_pool.ToListAndFree(callingConventionModifiers), closeBracket); 9075var statements = _pool.Allocate<StatementSyntax>(); 9087_pool.Free(statements); 9106var statements = _pool.Allocate<StatementSyntax>(); 9112_pool.ToListAndFree(statements), 9374catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9403_pool.ToListAndFree(catchClauses), 9682var skippedTokens = _pool.Allocate(); 9688return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 10160var sections = _pool.Allocate<SwitchSectionSyntax>(); 10172_pool.ToListAndFree(sections), 10236var labels = _pool.Allocate<SwitchLabelSyntax>(); 10237var statements = _pool.Allocate<StatementSyntax>(); 10299_pool.ToListAndFree(labels), 10300_pool.ToListAndFree(statements)); 10498var mods = _pool.Allocate(); 10501var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10573_pool.Free(variables); 10574_pool.Free(mods); 10646var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10677_pool.ToListAndFree(listOfDesignations), 10720var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10736_pool.ToListAndFree(variables)); 10965badBuilder = _pool.Allocate(); 10975_pool.Free(badBuilder); 10999constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12514var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12516arguments = _pool.ToListAndFree(list); 12760SyntaxListBuilder modifiers = _pool.Allocate(); 12762_pool.Free(modifiers); 12862var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12890_pool.ToListAndFree(list), 13599var commas = _pool.Allocate(); 13629_pool.ToTokenListAndFree(commas), 13763var modifiers = _pool.Allocate(); 13783return _pool.ToTokenListAndFree(modifiers); 13945SyntaxListBuilder modifiers = _pool.Allocate(); 13962_pool.ToTokenListAndFree(modifiers), 14128var clauses = _pool.Allocate<QueryClauseSyntax>(); 14166_pool.ToListAndFree(clauses), 14252var list = _pool.AllocateSeparated<OrderingSyntax>(); 14277_pool.ToListAndFree(list)); 14458var nodes = _pool.AllocateSeparated<TNode>(); 14526return _pool.ToListAndFree(nodes); 14626SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14633_pool.Free(b);
Parser\LanguageParser_InterpolatedString.cs (2)
194var builder = _pool.Allocate<InterpolatedStringContentSyntax>(); 226_pool.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
607var arms = _pool.AllocateSeparated<SwitchExpressionArmSyntax>(); 656return _pool.ToListAndFree(arms);