1 write to _token
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeOrToken.cs (1)
64
_token
= token;
56 references to _token
Microsoft.CodeAnalysis (56)
Syntax\SyntaxNodeOrToken.cs (56)
76
if (
_token
!= null)
78
return
_token
.KindText;
93
public int RawKind =>
_token
?.RawKind ?? _nodeOrParent?.RawKind ?? 0;
102
if (
_token
!= null)
104
return
_token
.Language;
122
public bool IsMissing =>
_token
?.IsMissing ?? _nodeOrParent?.IsMissing ?? false;
127
public SyntaxNode? Parent =>
_token
!= null ? _nodeOrParent : _nodeOrParent?.Parent;
129
internal GreenNode? UnderlyingNode =>
_token
?? _nodeOrParent?.Green;
161
if (
_token
!= null)
163
return new SyntaxToken(_nodeOrParent,
_token
, this.Position, _tokenIndex);
190
if (
_token
!= null)
231
if (
_token
!= null)
255
if (
_token
!= null)
258
return _position +
_token
.GetLeadingTriviaWidth();
277
if (
_token
!= null)
279
return new TextSpan(Position,
_token
.FullWidth);
301
if (
_token
!= null)
303
return
_token
.ToString();
322
if (
_token
!= null)
324
return
_token
.ToFullString();
340
if (
_token
!= null)
342
_token
.WriteTo(writer);
361
if (
_token
!= null)
385
if (
_token
!= null)
400
if (
_token
!= null)
420
if (
_token
!= null)
446
if (
_token
!= null)
448
return
_token
.ContainsDiagnostics;
468
if (
_token
!= null)
488
if (
_token
!= null)
490
return
_token
.ContainsDirectives;
510
if (
_token
!= null)
512
return
_token
.ContainsAnnotations;
529
if (
_token
!= null)
531
return
_token
.HasAnnotations(annotationKind);
547
if (
_token
!= null)
549
return
_token
.HasAnnotations(annotationKinds);
565
if (
_token
!= null)
567
return
_token
.HasAnnotation(annotation);
583
if (
_token
!= null)
585
return
_token
.GetAnnotations(annotationKind);
601
if (
_token
!= null)
603
return
_token
.GetAnnotations(annotationKinds);
632
if (
_token
!= null)
663
if (
_token
!= null)
704
(_nodeOrParent == other._nodeOrParent &&
_token
== other.
_token
&& _position == other._position && _tokenIndex == other._tokenIndex) ==
705
(_nodeOrParent == other._nodeOrParent &&
_token
== other.
_token
&& _tokenIndex == other._tokenIndex));
708
_token
== other.
_token
&&
742
return Hash.Combine(_nodeOrParent, Hash.Combine(
_token
, _tokenIndex));
853
if (node.
_token
!= null)
855
if (node.
_token
.ContainsDirectives)
894
internal int Width =>
_token
?.Width ?? _nodeOrParent?.Width ?? 0;
896
internal int FullWidth =>
_token
?.FullWidth ?? _nodeOrParent?.FullWidth ?? 0;