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)
41var innerNode = _nodes[index]; 56_nodes[index] = value.UnderlyingNode; 62if (_count >= _nodes.Length) 64this.Grow(_count == 0 ? 8 : _nodes.Length * 2); 67_nodes[_count++] = item; 94if (_count + length > _nodes.Length) 99list.CopyTo(offset, _nodes, _count, length); 120_nodes[_count] = null; 126Array.Copy(_nodes, tmp, _nodes.Length); 137if (_nodes[0]!.IsToken) 140InternalSyntax.SyntaxList.List(new[] { _nodes[0]! }).CreateRed(), 145return new SyntaxNodeOrTokenList(_nodes[0]!.CreateRed(), index: 0); 149InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!).CreateRed(), 153InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!, _nodes[2]!).CreateRed(), 159tmp[i].Value = _nodes[i]!;