2 writes to _nodeOrParent
Microsoft.CodeAnalysis (2)
Syntax\SyntaxNodeOrToken.cs (2)
48
_nodeOrParent
= node;
62
_nodeOrParent
= parent;
66 references to _nodeOrParent
Microsoft.CodeAnalysis (66)
Syntax\SyntaxNodeOrToken.cs (66)
80
if (
_nodeOrParent
!= null)
82
return
_nodeOrParent
.Green.KindText;
92
public int RawKind => _token?.RawKind ??
_nodeOrParent
?.RawKind ?? 0;
106
if (
_nodeOrParent
!= null)
108
return
_nodeOrParent
.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;
162
return new SyntaxToken(
_nodeOrParent
, _token, this.Position, _tokenIndex);
194
return
_nodeOrParent
;
201
node =
_nodeOrParent
;
235
if (
_nodeOrParent
!= null)
237
return
_nodeOrParent
.Span;
260
if (
_nodeOrParent
!= null)
262
return
_nodeOrParent
.SpanStart;
281
if (
_nodeOrParent
!= null)
283
return
_nodeOrParent
.FullSpan;
305
if (
_nodeOrParent
!= null)
307
return
_nodeOrParent
.ToString();
326
if (
_nodeOrParent
!= null)
328
return
_nodeOrParent
.ToFullString();
345
_nodeOrParent
?.WriteTo(writer);
365
if (
_nodeOrParent
!= null)
367
return
_nodeOrParent
.GetLeadingTrivia();
389
if (
_nodeOrParent
!= null)
391
return
_nodeOrParent
.GetTrailingTrivia();
404
if (
_nodeOrParent
!= null)
406
return
_nodeOrParent
.WithLeadingTrivia(trivia);
424
if (
_nodeOrParent
!= null)
426
return
_nodeOrParent
.WithTrailingTrivia(trivia);
450
if (
_nodeOrParent
!= null)
452
return
_nodeOrParent
.ContainsDiagnostics;
472
if (
_nodeOrParent
!= null)
474
return
_nodeOrParent
.GetDiagnostics();
492
if (
_nodeOrParent
!= null)
494
return
_nodeOrParent
.ContainsDirectives;
514
if (
_nodeOrParent
!= null)
516
return
_nodeOrParent
.ContainsAnnotations;
533
if (
_nodeOrParent
!= null)
535
return
_nodeOrParent
.HasAnnotations(annotationKind);
551
if (
_nodeOrParent
!= null)
553
return
_nodeOrParent
.HasAnnotations(annotationKinds);
569
if (
_nodeOrParent
!= null)
571
return
_nodeOrParent
.HasAnnotation(annotation);
587
if (
_nodeOrParent
!= null)
589
return
_nodeOrParent
.GetAnnotations(annotationKind);
605
if (
_nodeOrParent
!= null)
607
return
_nodeOrParent
.GetAnnotations(annotationKinds);
636
if (
_nodeOrParent
!= null)
638
return
_nodeOrParent
.WithAdditionalAnnotations(annotations);
667
if (
_nodeOrParent
!= null)
669
return
_nodeOrParent
.WithoutAnnotations(annotations);
703
(
_nodeOrParent
== other.
_nodeOrParent
&& _token == other._token && _position == other._position && _tokenIndex == other._tokenIndex) ==
704
(
_nodeOrParent
== other.
_nodeOrParent
&& _token == other._token && _tokenIndex == other._tokenIndex));
706
return
_nodeOrParent
== other.
_nodeOrParent
&&
741
return Hash.Combine(
_nodeOrParent
, Hash.Combine(_token, _tokenIndex));
823
public SyntaxTree? SyntaxTree =>
_nodeOrParent
?.SyntaxTree;
835
return
_nodeOrParent
?.GetLocation();
860
else if (node.
_nodeOrParent
!= null)
862
GetDirectives(node.
_nodeOrParent
, filter, ref buffer);
893
internal int Width => _token?.Width ??
_nodeOrParent
?.Width ?? 0;
895
internal int FullWidth => _token?.FullWidth ??
_nodeOrParent
?.FullWidth ?? 0;