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); 1836constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 1865members = _pool.Allocate<MemberDeclarationSyntax>(); 1917_pool.Free(members); 1922_pool.Free(constraints); 2097var tokens = _pool.Allocate(); 2151_pool.ToTokenListAndFree(tokens).Node); 2174var list = _pool.AllocateSeparated<BaseTypeSyntax>(); 2223return _syntaxFactory.BaseList(colon, _pool.ToListAndFree(list)); 2259var bounds = _pool.AllocateSeparated<TypeParameterConstraintSyntax>(); 2316_pool.ToListAndFree(bounds)); 2397var bounds = _pool.AllocateSeparated<AllowsConstraintSyntax>(); 2415return _syntaxFactory.AllowsConstraintClause(allows, _pool.ToListAndFree(bounds)); 2624var modifiers = _pool.Allocate(); 2929_pool.Free(modifiers); 3266var modifiers = _pool.Allocate(); 3407_pool.Free(modifiers); 3712constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3748_pool.ToListAndFree(constraints), 4408var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4428accessors = _pool.ToListAndFree(builder); 4628var nodes = _pool.Allocate(); 4644trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4654var nodes = _pool.Allocate(); 4670trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4683var accMods = _pool.Allocate(); 4766_pool.ToTokenListAndFree(accMods), 4989var modifiers = _pool.Allocate(); 5027_pool.ToTokenListAndFree(modifiers), 5313var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5333return _pool.ToListAndFree(variables); 5704var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5724argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5896constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5910_pool.ToListAndFree(constraints), 5935var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5939_pool.ToListAndFree(tmpList)); 6265var types = _pool.AllocateSeparated<TypeSyntax>(); 6271_pool.ToListAndFree(types), 7546var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7569_pool.Free(ignoredModifiers); 7723var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7730type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7929var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7980_pool.ToListAndFree(list), 7987var list = _pool.AllocateSeparated<TupleElementSyntax>(); 8014_pool.ToListAndFree(list), 8080var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8092_pool.ToListAndFree(missingTypes), 8099var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8105var modifiers = _pool.Allocate<SyntaxToken>(); 8111_pool.ToTokenListAndFree(modifiers), 8129_pool.ToListAndFree(types), 8184var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 8207_pool.ToListAndFree(callingConventionModifiers), closeBracket); 9142var statements = _pool.Allocate<StatementSyntax>(); 9154_pool.Free(statements); 9173var statements = _pool.Allocate<StatementSyntax>(); 9179_pool.ToListAndFree(statements), 9443catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9472_pool.ToListAndFree(catchClauses), 9751var skippedTokens = _pool.Allocate(); 9757return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 10229var sections = _pool.Allocate<SwitchSectionSyntax>(); 10241_pool.ToListAndFree(sections), 10305var labels = _pool.Allocate<SwitchLabelSyntax>(); 10306var statements = _pool.Allocate<StatementSyntax>(); 10368_pool.ToListAndFree(labels), 10369_pool.ToListAndFree(statements)); 10567var mods = _pool.Allocate(); 10570var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10642_pool.Free(variables); 10643_pool.Free(mods); 10715var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10746_pool.ToListAndFree(listOfDesignations), 10789var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10805_pool.ToListAndFree(variables)); 11038badBuilder = _pool.Allocate(); 11048_pool.Free(badBuilder); 11072constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12591var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12593arguments = _pool.ToListAndFree(list); 12846SyntaxListBuilder modifiers = _pool.Allocate(); 12848_pool.Free(modifiers); 12948var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12976_pool.ToListAndFree(list), 13685var commas = _pool.Allocate(); 13715_pool.ToTokenListAndFree(commas), 13849var modifiers = _pool.Allocate(); 13869return _pool.ToTokenListAndFree(modifiers); 14031SyntaxListBuilder modifiers = _pool.Allocate(); 14048_pool.ToTokenListAndFree(modifiers), 14214var clauses = _pool.Allocate<QueryClauseSyntax>(); 14252_pool.ToListAndFree(clauses), 14338var list = _pool.AllocateSeparated<OrderingSyntax>(); 14363_pool.ToListAndFree(list)); 14544var nodes = _pool.AllocateSeparated<TNode>(); 14612return _pool.ToListAndFree(nodes); 14712SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14719_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);