2 writes to _nodes
Microsoft.CodeAnalysis (2)
Syntax\SyntaxNodeOrTokenListBuilder.cs (2)
18
_nodes
= new GreenNode?[size];
127
_nodes
= tmp;
19 references to _nodes
Microsoft.CodeAnalysis (19)
Syntax\SyntaxNodeOrTokenListBuilder.cs (19)
41
var innerNode =
_nodes
[index];
56
_nodes
[index] = value.UnderlyingNode;
62
if (_count >=
_nodes
.Length)
64
this.Grow(_count == 0 ? 8 :
_nodes
.Length * 2);
67
_nodes
[_count++] = item;
94
if (_count + length >
_nodes
.Length)
99
list.CopyTo(offset,
_nodes
, _count, length);
120
_nodes
[_count] = null;
126
Array.Copy(
_nodes
, tmp,
_nodes
.Length);
137
if (
_nodes
[0]!.IsToken)
140
InternalSyntax.SyntaxList.List(new[] {
_nodes
[0]! }).CreateRed(),
145
return new SyntaxNodeOrTokenList(
_nodes
[0]!.CreateRed(), index: 0);
149
InternalSyntax.SyntaxList.List(
_nodes
[0]!,
_nodes
[1]!).CreateRed(),
153
InternalSyntax.SyntaxList.List(
_nodes
[0]!,
_nodes
[1]!,
_nodes
[2]!).CreateRed(),
159
tmp[i].Value =
_nodes
[i]!;