121 references to _pool
Microsoft.CodeAnalysis.CSharp (121)
Parser\LanguageParser.cs (117)
185var body = new NamespaceBodyBuilder(_pool); 197_pool.Free(initialBadNodes); 204body.Free(_pool); 285var body = new NamespaceBodyBuilder(_pool); 327body.Free(_pool); 392initialBadNodes = _pool.Allocate(); 434var finalMembers = _pool.Allocate<MemberDeclarationSyntax>(); 470_pool.Free(body.Members); 503var finalTypeDeclarationMembers = _pool.Allocate<MemberDeclarationSyntax>(); 530var newMembers = _pool.ToListAndFree(finalTypeDeclarationMembers); 578var pendingIncompleteMembers = _pool.Allocate<MemberDeclarationSyntax>(); 593var attributeLists = _pool.Allocate<AttributeListSyntax>(); 594var modifiers = _pool.Allocate(); 598_pool.Free(attributeLists); 599_pool.Free(modifiers); 766_pool.Free(pendingIncompleteMembers); 1087var attributes = _pool.Allocate<AttributeListSyntax>(); 1099return _pool.ToListAndFree(attributes); 1755constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 1784members = _pool.Allocate<MemberDeclarationSyntax>(); 1842_pool.Free(members); 1847_pool.Free(constraints); 1987var tokens = _pool.Allocate(); 2041_pool.ToTokenListAndFree(tokens).Node); 2064var list = _pool.AllocateSeparated<BaseTypeSyntax>(); 2113return _syntaxFactory.BaseList(colon, _pool.ToListAndFree(list)); 2149var bounds = _pool.AllocateSeparated<TypeParameterConstraintSyntax>(); 2206_pool.ToListAndFree(bounds)); 2287var bounds = _pool.AllocateSeparated<AllowsConstraintSyntax>(); 2305return _syntaxFactory.AllowsConstraintClause(allows, _pool.ToListAndFree(bounds)); 2494var modifiers = _pool.Allocate(); 2804_pool.Free(modifiers); 3057var modifiers = _pool.Allocate(); 3192_pool.Free(modifiers); 3482constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3521_pool.ToListAndFree(constraints), 4122var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4142accessors = _pool.ToListAndFree(builder); 4342var nodes = _pool.Allocate(); 4358trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4368var nodes = _pool.Allocate(); 4384trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4397var accMods = _pool.Allocate(); 4480_pool.ToTokenListAndFree(accMods), 4688var modifiers = _pool.Allocate(); 4723_pool.ToTokenListAndFree(modifiers), 4988var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5008return _pool.ToListAndFree(variables); 5377var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5397argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5508constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5522_pool.ToListAndFree(constraints), 5547var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5551_pool.ToListAndFree(tmpList)); 5879var types = _pool.AllocateSeparated<TypeSyntax>(); 5885_pool.ToListAndFree(types), 7160var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7183_pool.Free(ignoredModifiers); 7337var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7344type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7543var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7598_pool.ToListAndFree(list), 7605var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7632_pool.ToListAndFree(list), 7698var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7710_pool.ToListAndFree(missingTypes), 7717var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7723var modifiers = _pool.Allocate<SyntaxToken>(); 7729_pool.ToTokenListAndFree(modifiers), 7747_pool.ToListAndFree(types), 7802var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 7825_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8684var statements = _pool.Allocate<StatementSyntax>(); 8696_pool.Free(statements); 8715var statements = _pool.Allocate<StatementSyntax>(); 8721_pool.ToListAndFree(statements), 8965catchClauses = _pool.Allocate<CatchClauseSyntax>(); 8994_pool.ToListAndFree(catchClauses), 9273var skippedTokens = _pool.Allocate(); 9279return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 9718var sections = _pool.Allocate<SwitchSectionSyntax>(); 9730_pool.ToListAndFree(sections), 9794var labels = _pool.Allocate<SwitchLabelSyntax>(); 9795var statements = _pool.Allocate<StatementSyntax>(); 9857_pool.ToListAndFree(labels), 9858_pool.ToListAndFree(statements)); 10056var mods = _pool.Allocate(); 10059var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10131_pool.Free(variables); 10132_pool.Free(mods); 10176var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10207_pool.ToListAndFree(listOfDesignations), 10250var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10266_pool.ToListAndFree(variables)); 10500badBuilder = _pool.Allocate(); 10510_pool.Free(badBuilder); 10532constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 11973var list = _pool.AllocateSeparated<ArgumentSyntax>(); 11975arguments = _pool.ToListAndFree(list); 12269SyntaxListBuilder modifiers = _pool.Allocate(); 12272_pool.Free(modifiers); 12374var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12402_pool.ToListAndFree(list), 13077var commas = _pool.Allocate(); 13107_pool.ToTokenListAndFree(commas), 13252var modifiers = _pool.Allocate(); 13272return _pool.ToTokenListAndFree(modifiers); 13443SyntaxListBuilder modifiers = _pool.Allocate(); 13461_pool.ToTokenListAndFree(modifiers), 13629var clauses = _pool.Allocate<QueryClauseSyntax>(); 13668_pool.ToListAndFree(clauses), 13751var list = _pool.AllocateSeparated<OrderingSyntax>(); 13776_pool.ToListAndFree(list)); 13957var nodes = _pool.AllocateSeparated<TNode>(); 14020return _pool.ToListAndFree(nodes); 14120SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14127_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);