1 write to _node
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeOrTokenList.cs (1)
45
_node
= node;
25 references to _node
Microsoft.CodeAnalysis (25)
Syntax\SyntaxNodeOrTokenList.cs (25)
114
internal SyntaxNode? Node =>
_node
;
116
internal int Position =>
_node
?.Position ?? 0;
118
internal SyntaxNode? Parent =>
_node
?.Parent;
125
get { return
_node
== null ? 0 :
_node
.Green.IsList ?
_node
.SlotCount : 1; }
136
if (
_node
!= null)
138
if (!
_node
.IsList)
142
return
_node
;
147
if (unchecked((uint)index < (uint)
_node
.SlotCount))
149
var green =
_node
.Green.GetRequiredSlot(index);
152
return new SyntaxToken(this.Parent, green,
_node
.GetChildPosition(index), this.index + index);
155
return
_node
.GetRequiredNodeSlot(index);
167
public TextSpan FullSpan =>
_node
?.FullSpan ?? default(TextSpan);
172
public TextSpan Span =>
_node
?.Span ?? default(TextSpan);
184
return
_node
!= null
185
?
_node
.ToString()
199
return
_node
!= null
200
?
_node
.ToFullString()
267
return
_node
!= null;
453
return
_node
== null
466
return
_node
== null
507
return
_node
== other.
_node
;
530
return
_node
?.GetHashCode() ?? 0;