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(); 2924_pool.Free(modifiers); 3261var modifiers = _pool.Allocate(); 3402_pool.Free(modifiers); 3707constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 3743_pool.ToListAndFree(constraints), 4403var builder = _pool.Allocate<AccessorDeclarationSyntax>(); 4423accessors = _pool.ToListAndFree(builder); 4623var nodes = _pool.Allocate(); 4639trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4649var nodes = _pool.Allocate(); 4665trailingTrivia = _pool.ToTokenListAndFree(nodes).Node; 4678var accMods = _pool.Allocate(); 4761_pool.ToTokenListAndFree(accMods), 4984var modifiers = _pool.Allocate(); 5022_pool.ToTokenListAndFree(modifiers), 5308var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 5328return _pool.ToListAndFree(variables); 5699var args = _pool.AllocateSeparated<ArgumentSyntax>(); 5719argumentList = _syntaxFactory.BracketedArgumentList(open, _pool.ToListAndFree(args), close); 5891constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 5905_pool.ToListAndFree(constraints), 5930var tmpList = _pool.AllocateSeparated<BaseTypeSyntax>(); 5934_pool.ToListAndFree(tmpList)); 6260var types = _pool.AllocateSeparated<TypeSyntax>(); 6266_pool.ToListAndFree(types), 7541var ignoredModifiers = _pool.Allocate<SyntaxToken>(); 7564_pool.Free(ignoredModifiers); 7718var ranks = _pool.Allocate<ArrayRankSpecifierSyntax>(); 7725type = _syntaxFactory.ArrayType(type, _pool.ToListAndFree(ranks)); 7924var list = _pool.AllocateSeparated<ExpressionSyntax>(); 7975_pool.ToListAndFree(list), 7982var list = _pool.AllocateSeparated<TupleElementSyntax>(); 8009_pool.ToListAndFree(list), 8075var missingTypes = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8087_pool.ToListAndFree(missingTypes), 8094var types = _pool.AllocateSeparated<FunctionPointerParameterSyntax>(); 8100var modifiers = _pool.Allocate<SyntaxToken>(); 8106_pool.ToTokenListAndFree(modifiers), 8124_pool.ToListAndFree(types), 8179var callingConventionModifiers = _pool.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>(); 8202_pool.ToListAndFree(callingConventionModifiers), closeBracket); 9121var statements = _pool.Allocate<StatementSyntax>(); 9133_pool.Free(statements); 9152var statements = _pool.Allocate<StatementSyntax>(); 9158_pool.ToListAndFree(statements), 9420catchClauses = _pool.Allocate<CatchClauseSyntax>(); 9449_pool.ToListAndFree(catchClauses), 9728var skippedTokens = _pool.Allocate(); 9734return AddLeadingSkippedSyntax(result, _pool.ToTokenListAndFree(skippedTokens).Node); 10206var sections = _pool.Allocate<SwitchSectionSyntax>(); 10218_pool.ToListAndFree(sections), 10282var labels = _pool.Allocate<SwitchLabelSyntax>(); 10283var statements = _pool.Allocate<StatementSyntax>(); 10345_pool.ToListAndFree(labels), 10346_pool.ToListAndFree(statements)); 10544var mods = _pool.Allocate(); 10547var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10619_pool.Free(variables); 10620_pool.Free(mods); 10692var listOfDesignations = _pool.AllocateSeparated<VariableDesignationSyntax>(); 10723_pool.ToListAndFree(listOfDesignations), 10766var variables = _pool.AllocateSeparated<VariableDeclaratorSyntax>(); 10782_pool.ToListAndFree(variables)); 11015badBuilder = _pool.Allocate(); 11025_pool.Free(badBuilder); 11049constraints = _pool.Allocate<TypeParameterConstraintClauseSyntax>(); 12564var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12566arguments = _pool.ToListAndFree(list); 12810SyntaxListBuilder modifiers = _pool.Allocate(); 12812_pool.Free(modifiers); 12912var list = _pool.AllocateSeparated<ArgumentSyntax>(); 12940_pool.ToListAndFree(list), 13649var commas = _pool.Allocate(); 13679_pool.ToTokenListAndFree(commas), 13813var modifiers = _pool.Allocate(); 13833return _pool.ToTokenListAndFree(modifiers); 13995SyntaxListBuilder modifiers = _pool.Allocate(); 14012_pool.ToTokenListAndFree(modifiers), 14178var clauses = _pool.Allocate<QueryClauseSyntax>(); 14216_pool.ToListAndFree(clauses), 14302var list = _pool.AllocateSeparated<OrderingSyntax>(); 14327_pool.ToListAndFree(list)); 14508var nodes = _pool.AllocateSeparated<TNode>(); 14576return _pool.ToListAndFree(nodes); 14676SyntaxListBuilder<SyntaxToken> b = _pool.Allocate<SyntaxToken>(); 14683_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);