123 references to _pool
Microsoft.CodeAnalysis.CSharp (123)
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);
Parser\LanguageParser.cs (119)
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); 1079var attributes = _pool.Allocate<AttributeListSyntax>(); 1091return _pool.ToListAndFree(attributes); 1841constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 1870members = _pool.Allocate<MemberDeclarationSyntax>(); 1922_pool.Free(members); 1927_pool.Free(constraints); 2102var tokens = _pool.Allocate(); 2156_pool.ToTokenListAndFree(tokens).Node); 2179var 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)); 2608var modifiers = _pool.Allocate(); 2913_pool.Free(modifiers); 3250var modifiers = _pool.Allocate(); 3391_pool.Free(modifiers); 3696constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3732_pool.ToListAndFree(constraints), 4383var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4399accessors = _pool.ToListAndFree(builder); 4444var modifiers = _pool.Allocate(); 4447_pool.Free(modifiers); 4586var nodes = _pool.Allocate(); 4602trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4612var nodes = _pool.Allocate(); 4628trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4641var accMods = _pool.Allocate(); 4724_pool.ToTokenListAndFree(accMods), 4947var modifiers = _pool.Allocate(); 4985_pool.ToTokenListAndFree(modifiers), 5271var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5291return _pool.ToListAndFree(variables); 5658var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5678argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5850constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5864_pool.ToListAndFree(constraints), 5889var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5893_pool.ToListAndFree(tmpList)); 6206var types = _pool.AllocateSeparated<TypeSyntax>(); 6212_pool.ToListAndFree(types), 7482var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7505_pool.Free(ignoredModifiers); 7659var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7666type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7865var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7916_pool.ToListAndFree(list), 7923var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7950_pool.ToListAndFree(list), 8016var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8028_pool.ToListAndFree(missingTypes), 8035var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8041var modifiers = _pool.Allocate<SyntaxToken>(); 8047_pool.ToTokenListAndFree(modifiers), 8065_pool.ToListAndFree(types), 8120var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 8143_pool.ToListAndFree(callingConventionModifiers), closeBracket); 9078var statements = _pool.Allocate<StatementSyntax>(); 9090_pool.Free(statements); 9109var statements = _pool.Allocate<StatementSyntax>(); 9115_pool.ToListAndFree(statements), 9379catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9408_pool.ToListAndFree(catchClauses), 9687var skippedTokens = _pool.Allocate(); 9693return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 10165var sections = _pool.Allocate<SwitchSectionSyntax>(); 10177_pool.ToListAndFree(sections), 10241var labels = _pool.Allocate<SwitchLabelSyntax>(); 10242var statements = _pool.Allocate<StatementSyntax>(); 10304_pool.ToListAndFree(labels), 10305_pool.ToListAndFree(statements)); 10503var mods = _pool.Allocate(); 10506var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10578_pool.Free(variables); 10579_pool.Free(mods); 10651var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10682_pool.ToListAndFree(listOfDesignations), 10725var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10741_pool.ToListAndFree(variables)); 10974badBuilder = _pool.Allocate(); 10984_pool.Free(badBuilder); 11008constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12527var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12529arguments = _pool.ToListAndFree(list); 12782SyntaxListBuilder modifiers = _pool.Allocate(); 12784_pool.Free(modifiers); 12884var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12912_pool.ToListAndFree(list), 13624var commas = _pool.Allocate(); 13654_pool.ToTokenListAndFree(commas), 13788var modifiers = _pool.Allocate(); 13822return _pool.ToTokenListAndFree(modifiers); 14013SyntaxListBuilder modifiers = _pool.Allocate(); 14030_pool.ToTokenListAndFree(modifiers), 14196var clauses = _pool.Allocate<QueryClauseSyntax>(); 14234_pool.ToListAndFree(clauses), 14320var list = _pool.AllocateSeparated<OrderingSyntax>(); 14345_pool.ToListAndFree(list)); 14526var nodes = _pool.AllocateSeparated<TNode>(); 14594return _pool.ToListAndFree(nodes); 14694SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14701_pool.Free(b);