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