2 instantiations of SyntaxListBuilder
Microsoft.CodeAnalysis (2)
Syntax\InternalSyntax\SyntaxListBuilder`1.cs (1)
20
return new
SyntaxListBuilder
<TNode>(8);
Syntax\InternalSyntax\SyntaxListPool.cs (1)
48
return new
SyntaxListBuilder
<TNode>(this.Allocate());
30 references to SyntaxListBuilder
Microsoft.CodeAnalysis (6)
Syntax\InternalSyntax\SyntaxListBuilder`1.cs (4)
18
public static
SyntaxListBuilder
<TNode> Create()
69
public
SyntaxListBuilder
<TNode> Add(TNode? node)
105
public static implicit operator SyntaxListBuilder(
SyntaxListBuilder
<TNode> builder)
110
public static implicit operator SyntaxList<TNode>(
SyntaxListBuilder
<TNode> builder)
Syntax\InternalSyntax\SyntaxListPool.cs (2)
46
internal
SyntaxListBuilder
<TNode> Allocate<TNode>() where TNode : GreenNode
87
public SyntaxList<TNode> ToListAndFree<TNode>(
SyntaxListBuilder
<TNode> item)
Microsoft.CodeAnalysis.CSharp (24)
Parser\DocumentationCommentParser.cs (8)
66
var
nodes = _pool.Allocate<XmlNodeSyntax>();
213
var
attrs = _pool.Allocate<XmlAttributeSyntax>();
222
var
nodes = _pool.Allocate<XmlNodeSyntax>();
489
var
textTokens = _pool.Allocate<SyntaxToken>();
724
var
textTokens = _pool.Allocate<SyntaxToken>();
917
var
badTokens = _pool.Allocate<SyntaxToken>();
1457
var
rankList = _pool.Allocate<ArrayRankSpecifierSyntax>();
1567
var
badTokens = _pool.Allocate<SyntaxToken>();
Parser\LanguageParser.cs (15)
434
var
finalMembers = _pool.Allocate<MemberDeclarationSyntax>();
503
var
finalTypeDeclarationMembers = _pool.Allocate<MemberDeclarationSyntax>();
578
var
pendingIncompleteMembers = _pool.Allocate<MemberDeclarationSyntax>();
593
var
attributeLists = _pool.Allocate<AttributeListSyntax>();
1087
var
attributes = _pool.Allocate<AttributeListSyntax>();
4122
var
builder = _pool.Allocate<AccessorDeclarationSyntax>();
7160
var
ignoredModifiers = _pool.Allocate<SyntaxToken>();
7337
var
ranks = _pool.Allocate<ArrayRankSpecifierSyntax>();
7723
var
modifiers = _pool.Allocate<SyntaxToken>();
8684
var
statements = _pool.Allocate<StatementSyntax>();
8715
var
statements = _pool.Allocate<StatementSyntax>();
9718
var
sections = _pool.Allocate<SwitchSectionSyntax>();
9794
var
labels = _pool.Allocate<SwitchLabelSyntax>();
9795
var
statements = _pool.Allocate<StatementSyntax>();
13628
var
clauses = _pool.Allocate<QueryClauseSyntax>();
Parser\LanguageParser_InterpolatedString.cs (1)
97
var
builder = _pool.Allocate<InterpolatedStringContentSyntax>();