1 write to _token
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeOrToken.cs (1)
63
_token
= token;
56 references to _token
Microsoft.CodeAnalysis (56)
Syntax\SyntaxNodeOrToken.cs (56)
75
if (
_token
!= null)
77
return
_token
.KindText;
92
public int RawKind =>
_token
?.RawKind ?? _nodeOrParent?.RawKind ?? 0;
101
if (
_token
!= null)
103
return
_token
.Language;
121
public bool IsMissing =>
_token
?.IsMissing ?? _nodeOrParent?.IsMissing ?? false;
126
public SyntaxNode? Parent =>
_token
!= null ? _nodeOrParent : _nodeOrParent?.Parent;
128
internal GreenNode? UnderlyingNode =>
_token
?? _nodeOrParent?.Green;
160
if (
_token
!= null)
162
return new SyntaxToken(_nodeOrParent,
_token
, this.Position, _tokenIndex);
189
if (
_token
!= null)
230
if (
_token
!= null)
254
if (
_token
!= null)
257
return _position +
_token
.GetLeadingTriviaWidth();
276
if (
_token
!= null)
278
return new TextSpan(Position,
_token
.FullWidth);
300
if (
_token
!= null)
302
return
_token
.ToString();
321
if (
_token
!= null)
323
return
_token
.ToFullString();
339
if (
_token
!= null)
341
_token
.WriteTo(writer);
360
if (
_token
!= null)
384
if (
_token
!= null)
399
if (
_token
!= null)
419
if (
_token
!= null)
445
if (
_token
!= null)
447
return
_token
.ContainsDiagnostics;
467
if (
_token
!= null)
487
if (
_token
!= null)
489
return
_token
.ContainsDirectives;
509
if (
_token
!= null)
511
return
_token
.ContainsAnnotations;
528
if (
_token
!= null)
530
return
_token
.HasAnnotations(annotationKind);
546
if (
_token
!= null)
548
return
_token
.HasAnnotations(annotationKinds);
564
if (
_token
!= null)
566
return
_token
.HasAnnotation(annotation);
582
if (
_token
!= null)
584
return
_token
.GetAnnotations(annotationKind);
600
if (
_token
!= null)
602
return
_token
.GetAnnotations(annotationKinds);
631
if (
_token
!= null)
662
if (
_token
!= null)
703
(_nodeOrParent == other._nodeOrParent &&
_token
== other.
_token
&& _position == other._position && _tokenIndex == other._tokenIndex) ==
704
(_nodeOrParent == other._nodeOrParent &&
_token
== other.
_token
&& _tokenIndex == other._tokenIndex));
707
_token
== other.
_token
&&
741
return Hash.Combine(_nodeOrParent, Hash.Combine(
_token
, _tokenIndex));
852
if (node.
_token
!= null)
854
if (node.
_token
.ContainsDirectives)
893
internal int Width =>
_token
?.Width ?? _nodeOrParent?.Width ?? 0;
895
internal int FullWidth =>
_token
?.FullWidth ?? _nodeOrParent?.FullWidth ?? 0;