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(); 2846_pool.Free(modifiers); 3106var modifiers = _pool.Allocate(); 3246_pool.Free(modifiers); 3543constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3582_pool.ToListAndFree(constraints), 4213var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4233accessors = _pool.ToListAndFree(builder); 4433var nodes = _pool.Allocate(); 4449trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4459var nodes = _pool.Allocate(); 4475trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4488var accMods = _pool.Allocate(); 4571_pool.ToTokenListAndFree(accMods), 4792var modifiers = _pool.Allocate(); 4830_pool.ToTokenListAndFree(modifiers), 5098var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5118return _pool.ToListAndFree(variables); 5488var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5508argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5619constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5633_pool.ToListAndFree(constraints), 5658var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5662_pool.ToListAndFree(tmpList)); 5990var types = _pool.AllocateSeparated<TypeSyntax>(); 5996_pool.ToListAndFree(types), 7271var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7294_pool.Free(ignoredModifiers); 7448var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7455type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7654var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7705_pool.ToListAndFree(list), 7712var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7739_pool.ToListAndFree(list), 7805var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7817_pool.ToListAndFree(missingTypes), 7824var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7830var modifiers = _pool.Allocate<SyntaxToken>(); 7836_pool.ToTokenListAndFree(modifiers), 7854_pool.ToListAndFree(types), 7909var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 7932_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8802var statements = _pool.Allocate<StatementSyntax>(); 8814_pool.Free(statements); 8833var statements = _pool.Allocate<StatementSyntax>(); 8839_pool.ToListAndFree(statements), 9101catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9130_pool.ToListAndFree(catchClauses), 9409var skippedTokens = _pool.Allocate(); 9415return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 9854var sections = _pool.Allocate<SwitchSectionSyntax>(); 9866_pool.ToListAndFree(sections), 9930var labels = _pool.Allocate<SwitchLabelSyntax>(); 9931var statements = _pool.Allocate<StatementSyntax>(); 9993_pool.ToListAndFree(labels), 9994_pool.ToListAndFree(statements)); 10192var mods = _pool.Allocate(); 10195var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10267_pool.Free(variables); 10268_pool.Free(mods); 10338var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10369_pool.ToListAndFree(listOfDesignations), 10412var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10428_pool.ToListAndFree(variables)); 10662badBuilder = _pool.Allocate(); 10672_pool.Free(badBuilder); 10694constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12194var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12196arguments = _pool.ToListAndFree(list); 12440SyntaxListBuilder modifiers = _pool.Allocate(); 12442_pool.Free(modifiers); 12542var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12570_pool.ToListAndFree(list), 13252var commas = _pool.Allocate(); 13282_pool.ToTokenListAndFree(commas), 13427var modifiers = _pool.Allocate(); 13447return _pool.ToTokenListAndFree(modifiers); 13618SyntaxListBuilder modifiers = _pool.Allocate(); 13635_pool.ToTokenListAndFree(modifiers), 13804var clauses = _pool.Allocate<QueryClauseSyntax>(); 13843_pool.ToListAndFree(clauses), 13926var list = _pool.AllocateSeparated<OrderingSyntax>(); 13951_pool.ToListAndFree(list)); 14132var nodes = _pool.AllocateSeparated<TNode>(); 14200return _pool.ToListAndFree(nodes); 14300SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14307_pool.Free(b);
Parser\LanguageParser_InterpolatedString.cs (2)
92var builder = _pool.Allocate<InterpolatedStringContentSyntax>(); 124_pool.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
582var arms = _pool.AllocateSeparated<SwitchExpressionArmSyntax>(); 631return _pool.ToListAndFree(arms);