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); 765_pool.Free(pendingIncompleteMembers); 1086var attributes = _pool.Allocate<AttributeListSyntax>(); 1098return _pool.ToListAndFree(attributes); 1770constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 1799members = _pool.Allocate<MemberDeclarationSyntax>(); 1857_pool.Free(members); 1862_pool.Free(constraints); 2021var tokens = _pool.Allocate(); 2075_pool.ToTokenListAndFree(tokens).Node); 2098var list = _pool.AllocateSeparated<BaseTypeSyntax>(); 2147return _syntaxFactory.BaseList(colon, _pool.ToListAndFree(list)); 2183var bounds = _pool.AllocateSeparated<TypeParameterConstraintSyntax>(); 2240_pool.ToListAndFree(bounds)); 2321var bounds = _pool.AllocateSeparated<AllowsConstraintSyntax>(); 2339return _syntaxFactory.AllowsConstraintClause(allows, _pool.ToListAndFree(bounds)); 2534var modifiers = _pool.Allocate(); 2844_pool.Free(modifiers); 3097var modifiers = _pool.Allocate(); 3237_pool.Free(modifiers); 3532constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3571_pool.ToListAndFree(constraints), 4202var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4222accessors = _pool.ToListAndFree(builder); 4422var nodes = _pool.Allocate(); 4438trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4448var nodes = _pool.Allocate(); 4464trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4477var accMods = _pool.Allocate(); 4560_pool.ToTokenListAndFree(accMods), 4782var modifiers = _pool.Allocate(); 4820_pool.ToTokenListAndFree(modifiers), 5088var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5108return _pool.ToListAndFree(variables); 5478var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5498argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5609constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5623_pool.ToListAndFree(constraints), 5648var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5652_pool.ToListAndFree(tmpList)); 5980var types = _pool.AllocateSeparated<TypeSyntax>(); 5986_pool.ToListAndFree(types), 7261var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7284_pool.Free(ignoredModifiers); 7438var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7445type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7644var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7699_pool.ToListAndFree(list), 7706var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7733_pool.ToListAndFree(list), 7799var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7811_pool.ToListAndFree(missingTypes), 7818var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7824var modifiers = _pool.Allocate<SyntaxToken>(); 7830_pool.ToTokenListAndFree(modifiers), 7848_pool.ToListAndFree(types), 7903var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 7926_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8785var statements = _pool.Allocate<StatementSyntax>(); 8797_pool.Free(statements); 8816var statements = _pool.Allocate<StatementSyntax>(); 8822_pool.ToListAndFree(statements), 9066catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9095_pool.ToListAndFree(catchClauses), 9374var skippedTokens = _pool.Allocate(); 9380return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 9819var sections = _pool.Allocate<SwitchSectionSyntax>(); 9831_pool.ToListAndFree(sections), 9895var labels = _pool.Allocate<SwitchLabelSyntax>(); 9896var statements = _pool.Allocate<StatementSyntax>(); 9958_pool.ToListAndFree(labels), 9959_pool.ToListAndFree(statements)); 10157var mods = _pool.Allocate(); 10160var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10232_pool.Free(variables); 10233_pool.Free(mods); 10303var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10334_pool.ToListAndFree(listOfDesignations), 10377var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10393_pool.ToListAndFree(variables)); 10627badBuilder = _pool.Allocate(); 10637_pool.Free(badBuilder); 10659constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12159var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12161arguments = _pool.ToListAndFree(list); 12405SyntaxListBuilder modifiers = _pool.Allocate(); 12407_pool.Free(modifiers); 12507var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12535_pool.ToListAndFree(list), 13210var commas = _pool.Allocate(); 13240_pool.ToTokenListAndFree(commas), 13385var modifiers = _pool.Allocate(); 13405return _pool.ToTokenListAndFree(modifiers); 13576SyntaxListBuilder modifiers = _pool.Allocate(); 13593_pool.ToTokenListAndFree(modifiers), 13762var clauses = _pool.Allocate<QueryClauseSyntax>(); 13801_pool.ToListAndFree(clauses), 13884var list = _pool.AllocateSeparated<OrderingSyntax>(); 13909_pool.ToListAndFree(list)); 14090var nodes = _pool.AllocateSeparated<TNode>(); 14153return _pool.ToListAndFree(nodes); 14253SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14260_pool.Free(b);
Parser\LanguageParser_InterpolatedString.cs (2)
97var builder = _pool.Allocate<InterpolatedStringContentSyntax>(); 129_pool.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
582var arms = _pool.AllocateSeparated<SwitchExpressionArmSyntax>(); 631return _pool.ToListAndFree(arms);