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)); 6090var types = _pool.AllocateSeparated<TypeSyntax>(); 6096_pool.ToListAndFree(types), 7371var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7394_pool.Free(ignoredModifiers); 7548var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7555type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7754var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7805_pool.ToListAndFree(list), 7812var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7839_pool.ToListAndFree(list), 7905var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7917_pool.ToListAndFree(missingTypes), 7924var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7930var modifiers = _pool.Allocate<SyntaxToken>(); 7936_pool.ToTokenListAndFree(modifiers), 7954_pool.ToListAndFree(types), 8009var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 8032_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8957var statements = _pool.Allocate<StatementSyntax>(); 8969_pool.Free(statements); 8988var statements = _pool.Allocate<StatementSyntax>(); 8994_pool.ToListAndFree(statements), 9256catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9285_pool.ToListAndFree(catchClauses), 9564var skippedTokens = _pool.Allocate(); 9570return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 10009var sections = _pool.Allocate<SwitchSectionSyntax>(); 10021_pool.ToListAndFree(sections), 10085var labels = _pool.Allocate<SwitchLabelSyntax>(); 10086var statements = _pool.Allocate<StatementSyntax>(); 10148_pool.ToListAndFree(labels), 10149_pool.ToListAndFree(statements)); 10347var mods = _pool.Allocate(); 10350var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10422_pool.Free(variables); 10423_pool.Free(mods); 10493var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10524_pool.ToListAndFree(listOfDesignations), 10567var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10583_pool.ToListAndFree(variables)); 10812badBuilder = _pool.Allocate(); 10822_pool.Free(badBuilder); 10846constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12346var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12348arguments = _pool.ToListAndFree(list); 12592SyntaxListBuilder modifiers = _pool.Allocate(); 12594_pool.Free(modifiers); 12694var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12722_pool.ToListAndFree(list), 13404var commas = _pool.Allocate(); 13434_pool.ToTokenListAndFree(commas), 13568var modifiers = _pool.Allocate(); 13588return _pool.ToTokenListAndFree(modifiers); 13750SyntaxListBuilder modifiers = _pool.Allocate(); 13767_pool.ToTokenListAndFree(modifiers), 13933var clauses = _pool.Allocate<QueryClauseSyntax>(); 13971_pool.ToListAndFree(clauses), 14057var list = _pool.AllocateSeparated<OrderingSyntax>(); 14082_pool.ToListAndFree(list)); 14263var nodes = _pool.AllocateSeparated<TNode>(); 14331return _pool.ToListAndFree(nodes); 14431SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14438_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);