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); 1754constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 1783members = _pool.Allocate<MemberDeclarationSyntax>(); 1841_pool.Free(members); 1846_pool.Free(constraints); 1986var tokens = _pool.Allocate(); 2040_pool.ToTokenListAndFree(tokens).Node); 2063var list = _pool.AllocateSeparated<BaseTypeSyntax>(); 2112return _syntaxFactory.BaseList(colon, _pool.ToListAndFree(list)); 2148var bounds = _pool.AllocateSeparated<TypeParameterConstraintSyntax>(); 2205_pool.ToListAndFree(bounds)); 2286var bounds = _pool.AllocateSeparated<AllowsConstraintSyntax>(); 2304return _syntaxFactory.AllowsConstraintClause(allows, _pool.ToListAndFree(bounds)); 2493var modifiers = _pool.Allocate(); 2803_pool.Free(modifiers); 3056var modifiers = _pool.Allocate(); 3191_pool.Free(modifiers); 3481constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3520_pool.ToListAndFree(constraints), 4121var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4141accessors = _pool.ToListAndFree(builder); 4341var nodes = _pool.Allocate(); 4357trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4367var nodes = _pool.Allocate(); 4383trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4396var accMods = _pool.Allocate(); 4479_pool.ToTokenListAndFree(accMods), 4687var modifiers = _pool.Allocate(); 4722_pool.ToTokenListAndFree(modifiers), 4990var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5010return _pool.ToListAndFree(variables); 5380var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5400argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5511constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5525_pool.ToListAndFree(constraints), 5550var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5554_pool.ToListAndFree(tmpList)); 5882var types = _pool.AllocateSeparated<TypeSyntax>(); 5888_pool.ToListAndFree(types), 7163var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7186_pool.Free(ignoredModifiers); 7340var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7347type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7546var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7601_pool.ToListAndFree(list), 7608var list = _pool.AllocateSeparated<TupleElementSyntax>(); 7635_pool.ToListAndFree(list), 7701var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7713_pool.ToListAndFree(missingTypes), 7720var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 7726var modifiers = _pool.Allocate<SyntaxToken>(); 7732_pool.ToTokenListAndFree(modifiers), 7750_pool.ToListAndFree(types), 7805var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 7828_pool.ToListAndFree(callingConventionModifiers), closeBracket); 8687var statements = _pool.Allocate<StatementSyntax>(); 8699_pool.Free(statements); 8718var statements = _pool.Allocate<StatementSyntax>(); 8724_pool.ToListAndFree(statements), 8968catchClauses = _pool.Allocate<CatchClauseSyntax>(); 8997_pool.ToListAndFree(catchClauses), 9276var skippedTokens = _pool.Allocate(); 9282return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 9721var sections = _pool.Allocate<SwitchSectionSyntax>(); 9733_pool.ToListAndFree(sections), 9797var labels = _pool.Allocate<SwitchLabelSyntax>(); 9798var statements = _pool.Allocate<StatementSyntax>(); 9860_pool.ToListAndFree(labels), 9861_pool.ToListAndFree(statements)); 10059var mods = _pool.Allocate(); 10062var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10134_pool.Free(variables); 10135_pool.Free(mods); 10205var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10236_pool.ToListAndFree(listOfDesignations), 10279var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10295_pool.ToListAndFree(variables)); 10529badBuilder = _pool.Allocate(); 10539_pool.Free(badBuilder); 10561constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12002var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12004arguments = _pool.ToListAndFree(list); 12248SyntaxListBuilder modifiers = _pool.Allocate(); 12250_pool.Free(modifiers); 12350var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12378_pool.ToListAndFree(list), 13053var commas = _pool.Allocate(); 13083_pool.ToTokenListAndFree(commas), 13228var modifiers = _pool.Allocate(); 13248return _pool.ToTokenListAndFree(modifiers); 13419SyntaxListBuilder modifiers = _pool.Allocate(); 13436_pool.ToTokenListAndFree(modifiers), 13605var clauses = _pool.Allocate<QueryClauseSyntax>(); 13644_pool.ToListAndFree(clauses), 13727var list = _pool.AllocateSeparated<OrderingSyntax>(); 13752_pool.ToListAndFree(list)); 13933var nodes = _pool.AllocateSeparated<TNode>(); 13996return _pool.ToListAndFree(nodes); 14096SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14103_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);