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