2 writes to _nodes
Microsoft.CodeAnalysis (2)
Syntax\SyntaxNodeOrTokenListBuilder.cs (2)
18_nodes = new GreenNode?[size]; 121_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); 114_nodes[_count] = null; 120Array.Copy(_nodes, tmp, _nodes.Length); 131if (_nodes[0]!.IsToken) 134InternalSyntax.SyntaxList.List(new[] { _nodes[0]! }).CreateRed(), 139return new SyntaxNodeOrTokenList(_nodes[0]!.CreateRed(), index: 0); 143InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!).CreateRed(), 147InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!, _nodes[2]!).CreateRed(), 153tmp[i].Value = _nodes[i]!;