3 writes to Node
Microsoft.CodeAnalysis (3)
Syntax\SyntaxTriviaList.cs (3)
31Node = node; 39Node = node; 47Node = trivia.UnderlyingNode;
31 references to Node
Microsoft.CodeAnalysis (31)
Syntax\SyntaxTriviaList.cs (28)
66: this(default, SyntaxTriviaListBuilder.Create(trivias).Node, 0, 0) 108get { return Node == null ? 0 : (Node.IsList ? Node.SlotCount : 1); } 127if (Node != null) 129if (Node.IsList) 131if (unchecked((uint)index < (uint)Node.SlotCount)) 133return new SyntaxTrivia(Token, Node.GetSlot(index), Position + Node.GetSlotOffset(index), Index + index); 138return new SyntaxTrivia(Token, Node, Position, Index); 153if (Node == null) 158return new TextSpan(this.Position, Node.FullWidth); 169if (Node == null) 174return TextSpan.FromBounds(Position + Node.GetLeadingTriviaWidth(), 175Position + Node.FullWidth - Node.GetTrailingTriviaWidth()); 214return Node != null; 429if (Node == null) 439if (Node == null) 452Debug.Assert(Node is object); 453return GetGreenNodeAt(Node, i); 464return Node == other.Node && Index == other.Index && Token.Equals(other.Token); 484return Hash.Combine(Token.GetHashCode(), Hash.Combine(Node, Index)); 521return Node != null ? Node.ToString() : string.Empty; 526return Node != null ? Node.ToFullString() : string.Empty;
Syntax\SyntaxTriviaList.Enumerator.cs (1)
30_singleNodeOrList = list.Node;
Syntax\SyntaxTriviaList.Reversed.cs (2)
84if (list.Node is object) 87_singleNodeOrList = list.Node;