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); 3534constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3573_pool.ToListAndFree(constraints), 4204var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4224accessors = _pool.ToListAndFree(builder); 4424var nodes = _pool.Allocate(); 4440trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4450var nodes = _pool.Allocate(); 4466trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4479var accMods = _pool.Allocate(); 4562_pool.ToTokenListAndFree(accMods), 4784var modifiers = _pool.Allocate(); 4822_pool.ToTokenListAndFree(modifiers), 5090var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5110return _pool.ToListAndFree(variables); 5480var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5500argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5611constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5625_pool.ToListAndFree(constraints), 5650var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5654_pool.ToListAndFree(tmpList)); 5982var types = _pool.AllocateSeparated<TypeSyntax>(); 5988_pool.ToListAndFree(types), 7263var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7286_pool.Free(ignoredModifiers); 7440var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7447type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7646var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7701_pool.ToListAndFree(list), 7708var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7735_pool.ToListAndFree(list), 7801var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7813_pool.ToListAndFree(missingTypes), 7820var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7826var modifiers = _pool.Allocate<SyntaxToken>(); 7832_pool.ToTokenListAndFree(modifiers), 7850_pool.ToListAndFree(types), 7905var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 7928_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8798var statements = _pool.Allocate<StatementSyntax>(); 8810_pool.Free(statements); 8829var statements = _pool.Allocate<StatementSyntax>(); 8835_pool.ToListAndFree(statements), 9097catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9126_pool.ToListAndFree(catchClauses), 9405var skippedTokens = _pool.Allocate(); 9411return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 9850var sections = _pool.Allocate<SwitchSectionSyntax>(); 9862_pool.ToListAndFree(sections), 9926var labels = _pool.Allocate<SwitchLabelSyntax>(); 9927var statements = _pool.Allocate<StatementSyntax>(); 9989_pool.ToListAndFree(labels), 9990_pool.ToListAndFree(statements)); 10188var mods = _pool.Allocate(); 10191var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10263_pool.Free(variables); 10264_pool.Free(mods); 10334var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10365_pool.ToListAndFree(listOfDesignations), 10408var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10424_pool.ToListAndFree(variables)); 10658badBuilder = _pool.Allocate(); 10668_pool.Free(badBuilder); 10690constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12190var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12192arguments = _pool.ToListAndFree(list); 12436SyntaxListBuilder modifiers = _pool.Allocate(); 12438_pool.Free(modifiers); 12538var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12566_pool.ToListAndFree(list), 13241var commas = _pool.Allocate(); 13271_pool.ToTokenListAndFree(commas), 13416var modifiers = _pool.Allocate(); 13436return _pool.ToTokenListAndFree(modifiers); 13607SyntaxListBuilder modifiers = _pool.Allocate(); 13624_pool.ToTokenListAndFree(modifiers), 13793var clauses = _pool.Allocate<QueryClauseSyntax>(); 13832_pool.ToListAndFree(clauses), 13915var list = _pool.AllocateSeparated<OrderingSyntax>(); 13940_pool.ToListAndFree(list)); 14121var nodes = _pool.AllocateSeparated<TNode>(); 14184return _pool.ToListAndFree(nodes); 14284SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14291_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);