121 references to _pool
Microsoft.CodeAnalysis.CSharp (121)
Parser\LanguageParser.cs (117)
184
var body = new NamespaceBodyBuilder(
_pool
);
196
_pool
.Free(initialBadNodes);
203
body.Free(
_pool
);
284
var body = new NamespaceBodyBuilder(
_pool
);
326
body.Free(
_pool
);
391
initialBadNodes =
_pool
.Allocate();
433
var finalMembers =
_pool
.Allocate<MemberDeclarationSyntax>();
469
_pool
.Free(body.Members);
502
var finalTypeDeclarationMembers =
_pool
.Allocate<MemberDeclarationSyntax>();
529
var newMembers =
_pool
.ToListAndFree(finalTypeDeclarationMembers);
577
var pendingIncompleteMembers =
_pool
.Allocate<MemberDeclarationSyntax>();
592
var attributeLists =
_pool
.Allocate<AttributeListSyntax>();
593
var modifiers =
_pool
.Allocate();
597
_pool
.Free(attributeLists);
598
_pool
.Free(modifiers);
765
_pool
.Free(pendingIncompleteMembers);
1086
var attributes =
_pool
.Allocate<AttributeListSyntax>();
1098
return
_pool
.ToListAndFree(attributes);
1770
constraints =
_pool
.Allocate<TypeParameterConstraintClauseSyntax>();
1799
members =
_pool
.Allocate<MemberDeclarationSyntax>();
1857
_pool
.Free(members);
1862
_pool
.Free(constraints);
2021
var tokens =
_pool
.Allocate();
2075
_pool
.ToTokenListAndFree(tokens).Node);
2098
var list =
_pool
.AllocateSeparated<BaseTypeSyntax>();
2147
return _syntaxFactory.BaseList(colon,
_pool
.ToListAndFree(list));
2183
var bounds =
_pool
.AllocateSeparated<TypeParameterConstraintSyntax>();
2240
_pool
.ToListAndFree(bounds));
2321
var bounds =
_pool
.AllocateSeparated<AllowsConstraintSyntax>();
2339
return _syntaxFactory.AllowsConstraintClause(allows,
_pool
.ToListAndFree(bounds));
2534
var modifiers =
_pool
.Allocate();
2844
_pool
.Free(modifiers);
3097
var modifiers =
_pool
.Allocate();
3237
_pool
.Free(modifiers);
3532
constraints =
_pool
.Allocate<TypeParameterConstraintClauseSyntax>();
3571
_pool
.ToListAndFree(constraints),
4172
var builder =
_pool
.Allocate<AccessorDeclarationSyntax>();
4192
accessors =
_pool
.ToListAndFree(builder);
4392
var nodes =
_pool
.Allocate();
4408
trailingTrivia =
_pool
.ToTokenListAndFree(nodes).Node;
4418
var nodes =
_pool
.Allocate();
4434
trailingTrivia =
_pool
.ToTokenListAndFree(nodes).Node;
4447
var accMods =
_pool
.Allocate();
4530
_pool
.ToTokenListAndFree(accMods),
4752
var modifiers =
_pool
.Allocate();
4790
_pool
.ToTokenListAndFree(modifiers),
5058
var variables =
_pool
.AllocateSeparated<VariableDeclaratorSyntax>();
5078
return
_pool
.ToListAndFree(variables);
5448
var args =
_pool
.AllocateSeparated<ArgumentSyntax>();
5468
argumentList = _syntaxFactory.BracketedArgumentList(open,
_pool
.ToListAndFree(args), close);
5579
constraints =
_pool
.Allocate<TypeParameterConstraintClauseSyntax>();
5593
_pool
.ToListAndFree(constraints),
5618
var tmpList =
_pool
.AllocateSeparated<BaseTypeSyntax>();
5622
_pool
.ToListAndFree(tmpList));
5950
var types =
_pool
.AllocateSeparated<TypeSyntax>();
5956
_pool
.ToListAndFree(types),
7231
var ignoredModifiers =
_pool
.Allocate<SyntaxToken>();
7254
_pool
.Free(ignoredModifiers);
7408
var ranks =
_pool
.Allocate<ArrayRankSpecifierSyntax>();
7415
type = _syntaxFactory.ArrayType(type,
_pool
.ToListAndFree(ranks));
7614
var list =
_pool
.AllocateSeparated<ExpressionSyntax>();
7669
_pool
.ToListAndFree(list),
7676
var list =
_pool
.AllocateSeparated<TupleElementSyntax>();
7703
_pool
.ToListAndFree(list),
7769
var missingTypes =
_pool
.AllocateSeparated<FunctionPointerParameterSyntax>();
7781
_pool
.ToListAndFree(missingTypes),
7788
var types =
_pool
.AllocateSeparated<FunctionPointerParameterSyntax>();
7794
var modifiers =
_pool
.Allocate<SyntaxToken>();
7800
_pool
.ToTokenListAndFree(modifiers),
7818
_pool
.ToListAndFree(types),
7873
var callingConventionModifiers =
_pool
.AllocateSeparated<FunctionPointerUnmanagedCallingConventionSyntax>();
7896
_pool
.ToListAndFree(callingConventionModifiers), closeBracket);
8755
var statements =
_pool
.Allocate<StatementSyntax>();
8767
_pool
.Free(statements);
8786
var statements =
_pool
.Allocate<StatementSyntax>();
8792
_pool
.ToListAndFree(statements),
9036
catchClauses =
_pool
.Allocate<CatchClauseSyntax>();
9065
_pool
.ToListAndFree(catchClauses),
9344
var skippedTokens =
_pool
.Allocate();
9350
return AddLeadingSkippedSyntax(result,
_pool
.ToTokenListAndFree(skippedTokens).Node);
9789
var sections =
_pool
.Allocate<SwitchSectionSyntax>();
9801
_pool
.ToListAndFree(sections),
9865
var labels =
_pool
.Allocate<SwitchLabelSyntax>();
9866
var statements =
_pool
.Allocate<StatementSyntax>();
9928
_pool
.ToListAndFree(labels),
9929
_pool
.ToListAndFree(statements));
10127
var mods =
_pool
.Allocate();
10130
var variables =
_pool
.AllocateSeparated<VariableDeclaratorSyntax>();
10202
_pool
.Free(variables);
10203
_pool
.Free(mods);
10273
var listOfDesignations =
_pool
.AllocateSeparated<VariableDesignationSyntax>();
10304
_pool
.ToListAndFree(listOfDesignations),
10347
var variables =
_pool
.AllocateSeparated<VariableDeclaratorSyntax>();
10363
_pool
.ToListAndFree(variables));
10597
badBuilder =
_pool
.Allocate();
10607
_pool
.Free(badBuilder);
10629
constraints =
_pool
.Allocate<TypeParameterConstraintClauseSyntax>();
12123
var list =
_pool
.AllocateSeparated<ArgumentSyntax>();
12125
arguments =
_pool
.ToListAndFree(list);
12369
SyntaxListBuilder modifiers =
_pool
.Allocate();
12371
_pool
.Free(modifiers);
12471
var list =
_pool
.AllocateSeparated<ArgumentSyntax>();
12499
_pool
.ToListAndFree(list),
13174
var commas =
_pool
.Allocate();
13204
_pool
.ToTokenListAndFree(commas),
13349
var modifiers =
_pool
.Allocate();
13369
return
_pool
.ToTokenListAndFree(modifiers);
13540
SyntaxListBuilder modifiers =
_pool
.Allocate();
13557
_pool
.ToTokenListAndFree(modifiers),
13726
var clauses =
_pool
.Allocate<QueryClauseSyntax>();
13765
_pool
.ToListAndFree(clauses),
13848
var list =
_pool
.AllocateSeparated<OrderingSyntax>();
13873
_pool
.ToListAndFree(list));
14054
var nodes =
_pool
.AllocateSeparated<TNode>();
14117
return
_pool
.ToListAndFree(nodes);
14217
SyntaxListBuilder<SyntaxToken> b =
_pool
.Allocate<SyntaxToken>();
14224
_pool
.Free(b);
Parser\LanguageParser_InterpolatedString.cs (2)
97
var builder =
_pool
.Allocate<InterpolatedStringContentSyntax>();
129
_pool
.Free(builder);
Parser\LanguageParser_Patterns.cs (2)
582
var arms =
_pool
.AllocateSeparated<SwitchExpressionArmSyntax>();
631
return
_pool
.ToListAndFree(arms);