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