2 writes to _nodes
Microsoft.CodeAnalysis (2)
Syntax\SyntaxTriviaListBuilder.cs (2)
18
_nodes
= new SyntaxTrivia[size];
125
_nodes
= tmp;
17 references to _nodes
Microsoft.CodeAnalysis (17)
Syntax\SyntaxTriviaListBuilder.cs (17)
57
return
_nodes
[index];
74
if (_count >=
_nodes
.Length)
76
this.Grow(_count == 0 ? 8 :
_nodes
.Length * 2);
79
_nodes
[_count++] = item;
96
if (_count + length >
_nodes
.Length)
101
items.Slice(offset, length).CopyTo(
_nodes
.AsSpan().Slice(_count, length));
112
if (_count + length >
_nodes
.Length)
117
list.CopyTo(offset,
_nodes
, _count, length);
124
Array.Copy(
_nodes
, tmp,
_nodes
.Length);
140
return new SyntaxTriviaList(default(SyntaxToken),
_nodes
[0].UnderlyingNode, position: 0, index: 0);
144
_nodes
[0].UnderlyingNode!,
145
_nodes
[1].UnderlyingNode!), position: 0, index: 0);
149
_nodes
[0].UnderlyingNode!,
150
_nodes
[1].UnderlyingNode!,
151
_nodes
[2].UnderlyingNode!),
158
tmp[i].Value =
_nodes
[i].UnderlyingNode!;