119 references to _pool
Microsoft.CodeAnalysis.CSharp (119)
Parser\LanguageParser.cs (115)
182
var body = new NamespaceBodyBuilder(
_pool
);
194
_pool
.Free(initialBadNodes);
201
body.Free(
_pool
);
282
var body = new NamespaceBodyBuilder(
_pool
);
324
body.Free(
_pool
);
389
initialBadNodes =
_pool
.Allocate();
422
var pendingIncompleteMembers =
_pool
.Allocate<MemberDeclarationSyntax>();
435
var attributeLists =
_pool
.Allocate<AttributeListSyntax>();
436
var modifiers =
_pool
.Allocate();
440
_pool
.Free(attributeLists);
441
_pool
.Free(modifiers);
598
_pool
.Free(pendingIncompleteMembers);
870
var attributes =
_pool
.Allocate<AttributeListSyntax>();
879
return
_pool
.ToListAndFree(attributes);
1483
constraints =
_pool
.Allocate<TypeParameterConstraintClauseSyntax>();
1512
members =
_pool
.Allocate<MemberDeclarationSyntax>();
1570
_pool
.Free(members);
1575
_pool
.Free(constraints);
1715
var tokens =
_pool
.Allocate();
1769
_pool
.ToTokenListAndFree(tokens).Node);
1789
var list =
_pool
.AllocateSeparated<BaseTypeSyntax>();
1823
return _syntaxFactory.BaseList(colon,
_pool
.ToListAndFree(list));
1859
var bounds =
_pool
.AllocateSeparated<TypeParameterConstraintSyntax>();
1904
_pool
.ToListAndFree(bounds));
2160
var modifiers =
_pool
.Allocate();
2470
_pool
.Free(modifiers);
2723
var modifiers =
_pool
.Allocate();
2858
_pool
.Free(modifiers);
3149
constraints =
_pool
.Allocate<TypeParameterConstraintClauseSyntax>();
3188
_pool
.ToListAndFree(constraints),
3731
var builder =
_pool
.Allocate<AccessorDeclarationSyntax>();
3751
accessors =
_pool
.ToListAndFree(builder);
3951
var nodes =
_pool
.Allocate();
3967
trailingTrivia =
_pool
.ToTokenListAndFree(nodes).Node;
3977
var nodes =
_pool
.Allocate();
3993
trailingTrivia =
_pool
.ToTokenListAndFree(nodes).Node;
4004
var accMods =
_pool
.Allocate();
4087
_pool
.ToTokenListAndFree(accMods),
4295
var modifiers =
_pool
.Allocate();
4333
_pool
.ToTokenListAndFree(modifiers),
4479
var variables =
_pool
.AllocateSeparated<VariableDeclaratorSyntax>();
4486
_syntaxFactory.VariableDeclaration(type,
_pool
.ToListAndFree(variables)),
4621
var variables =
_pool
.AllocateSeparated<VariableDeclaratorSyntax>();
4637
_syntaxFactory.VariableDeclaration(type,
_pool
.ToListAndFree(variables)),
4668
var variables =
_pool
.AllocateSeparated<VariableDeclaratorSyntax>();
4683
_syntaxFactory.VariableDeclaration(type,
_pool
.ToListAndFree(variables)),
5056
var args =
_pool
.AllocateSeparated<ArgumentSyntax>();
5076
argumentList = _syntaxFactory.BracketedArgumentList(open,
_pool
.ToListAndFree(args), close);
5164
var variables =
_pool
.AllocateSeparated<VariableDeclaratorSyntax>();
5169
_syntaxFactory.VariableDeclaration(type,
_pool
.ToListAndFree(variables)),
5188
constraints =
_pool
.Allocate<TypeParameterConstraintClauseSyntax>();
5202
_pool
.ToListAndFree(constraints),
5227
var tmpList =
_pool
.AllocateSeparated<BaseTypeSyntax>();
5231
_pool
.ToListAndFree(tmpList));
5552
var types =
_pool
.AllocateSeparated<TypeSyntax>();
5558
_pool
.ToListAndFree(types),
6753
var ignoredModifiers =
_pool
.Allocate<SyntaxToken>();
6776
_pool
.Free(ignoredModifiers);
6944
var ranks =
_pool
.Allocate<ArrayRankSpecifierSyntax>();
6951
type = _syntaxFactory.ArrayType(type,
_pool
.ToListAndFree(ranks));
7028
var list =
_pool
.AllocateSeparated<ExpressionSyntax>();
7083
_pool
.ToListAndFree(list),
7090
var list =
_pool
.AllocateSeparated<TupleElementSyntax>();
7117
_pool
.ToListAndFree(list),
7183
var missingTypes =
_pool
.AllocateSeparated<FunctionPointerParameterSyntax>();
7195
_pool
.ToListAndFree(missingTypes),
7202
var types =
_pool
.AllocateSeparated<FunctionPointerParameterSyntax>();
7208
var modifiers =
_pool
.Allocate<SyntaxToken>();
7214
_pool
.ToTokenListAndFree(modifiers),
7232
_pool
.ToListAndFree(types),
7287
var callingConventionModifiers =
_pool
.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>();
7310
_pool
.ToListAndFree(callingConventionModifiers), closeBracket);
8078
var statements =
_pool
.Allocate<StatementSyntax>();
8090
_pool
.Free(statements);
8109
var statements =
_pool
.Allocate<StatementSyntax>();
8115
_pool
.ToListAndFree(statements),
8367
catchClauses =
_pool
.Allocate<CatchClauseSyntax>();
8396
_pool
.ToListAndFree(catchClauses),
9069
var sections =
_pool
.Allocate<SwitchSectionSyntax>();
9081
_pool
.ToListAndFree(sections),
9145
var labels =
_pool
.Allocate<SwitchLabelSyntax>();
9146
var statements =
_pool
.Allocate<StatementSyntax>();
9208
_pool
.ToListAndFree(labels),
9209
_pool
.ToListAndFree(statements));
9408
var mods =
_pool
.Allocate();
9411
var variables =
_pool
.AllocateSeparated<VariableDeclaratorSyntax>();
9469
_syntaxFactory.VariableDeclaration(type,
_pool
.ToListAndFree(variables)),
9474
_pool
.Free(mods);
9518
var listOfDesignations =
_pool
.AllocateSeparated<VariableDesignationSyntax>();
9549
_pool
.ToListAndFree(listOfDesignations),
9589
var variables =
_pool
.AllocateSeparated<VariableDeclaratorSyntax>();
9596
_pool
.ToListAndFree(variables));
9818
badBuilder =
_pool
.Allocate();
9828
_pool
.Free(badBuilder);
9850
constraints =
_pool
.Allocate<TypeParameterConstraintClauseSyntax>();
11104
var list =
_pool
.AllocateSeparated<ArgumentSyntax>();
11106
arguments =
_pool
.ToListAndFree(list);
11414
SyntaxListBuilder modifiers =
_pool
.Allocate();
11417
_pool
.Free(modifiers);
11510
var list =
_pool
.AllocateSeparated<ArgumentSyntax>();
11538
_pool
.ToListAndFree(list),
12158
var commas =
_pool
.Allocate();
12188
_pool
.ToTokenListAndFree(commas),
12326
var modifiers =
_pool
.Allocate();
12346
return
_pool
.ToTokenListAndFree(modifiers);
12528
SyntaxListBuilder modifiers =
_pool
.Allocate();
12547
_pool
.ToTokenListAndFree(modifiers),
12716
var clauses =
_pool
.Allocate<QueryClauseSyntax>();
12755
_pool
.ToListAndFree(clauses),
12838
var list =
_pool
.AllocateSeparated<OrderingSyntax>();
12863
_pool
.ToListAndFree(list));
13022
var nodes =
_pool
.AllocateSeparated<TNode>();
13082
return
_pool
.ToListAndFree(nodes);
13175
SyntaxListBuilder<SyntaxToken> b =
_pool
.Allocate<SyntaxToken>();
13182
_pool
.Free(b);
Parser\LanguageParser_InterpolatedString.cs (2)
97
var builder =
_pool
.Allocate<InterpolatedStringContentSyntax>();
129
_pool
.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
560
var arms =
_pool
.AllocateSeparated<SwitchExpressionArmSyntax>();
605
return
_pool
.ToListAndFree(arms);