2 writes to Node
Microsoft.CodeAnalysis (2)
Syntax\SyntaxTokenList.cs (2)
34Node = tokenOrList; 42Node = token.Node;
32 references to Node
Microsoft.CodeAnalysis (32)
Syntax\SyntaxListBuilder.cs (2)
144Debug.Assert(list.Node is object); 145this.AddRange(new SyntaxList<SyntaxNode>(list.Node.CreateRed()), offset, length);
Syntax\SyntaxTokenList.cs (28)
106return builder.ToList().Node; 116public int Count => Node == null ? 0 : (Node.IsList ? Node.SlotCount : 1); 129if (Node != null) 131if (Node.IsList) 133if (unchecked((uint)index < (uint)Node.SlotCount)) 135return new SyntaxToken(_parent, Node.GetSlot(index), Position + Node.GetSlotOffset(index), _index + index); 140return new SyntaxToken(_parent, Node, Position, _index); 155if (Node == null) 160return new TextSpan(this.Position, Node.FullWidth); 171if (Node == null) 176return TextSpan.FromBounds(Position + Node.GetLeadingTriviaWidth(), 177Position + Node.FullWidth - Node.GetTrailingTriviaWidth()); 191return Node != null ? Node.ToString() : string.Empty; 204return Node != null ? Node.ToFullString() : string.Empty; 243return Node != null; 270Debug.Assert(Node is object); 271return GetGreenNodeAt(Node, i); 455if (Node == null) 465if (Node == null) 497return Node == other.Node && _parent == other._parent && _index == other._index; 515return Hash.Combine(Node, _index);
Syntax\SyntaxTokenList.Enumerator.cs (1)
63_singleNodeOrList = list.Node;
Syntax\SyntaxTokenList.Reversed.cs (1)
88_singleNodeOrList = list.Node;