1 write to UnderlyingNode
Microsoft.CodeAnalysis (1)
Syntax\SyntaxTrivia.cs (1)
29UnderlyingNode = triviaNode;
74 references to UnderlyingNode
Microsoft.CodeAnalysis (74)
Syntax\SeparatedSyntaxList.cs (2)
455Debug.Assert(tr.UnderlyingNode is object); 456if (tr.UnderlyingNode.IsTriviaWithEndOfLine())
Syntax\SyntaxDiffer.cs (8)
444Debug.Assert(tr.UnderlyingNode is object); 445_nodeSimilaritySet.Add(tr.UnderlyingNode); 450Debug.Assert(tr.UnderlyingNode is object); 451_nodeSimilaritySet.Add(tr.UnderlyingNode); 456Debug.Assert(tr.UnderlyingNode is object); 457if (_nodeSimilaritySet.Contains(tr.UnderlyingNode)) 465Debug.Assert(tr.UnderlyingNode is object); 466if (_nodeSimilaritySet.Contains(tr.UnderlyingNode))
Syntax\SyntaxTrivia.cs (49)
39public int RawKind => UnderlyingNode?.RawKind ?? 0; 43return GetType().Name + " " + (UnderlyingNode?.KindText ?? "None") + " " + ToString(); 49public string Language => UnderlyingNode?.Language ?? string.Empty; 62var node = UnderlyingNode; 77internal int Width => UnderlyingNode?.Width ?? 0; 83internal int FullWidth => UnderlyingNode?.FullWidth ?? 0; 94return UnderlyingNode != null 95? new TextSpan(Position + UnderlyingNode.GetLeadingTriviaWidth(), UnderlyingNode.Width) 110return UnderlyingNode != null 111? Position + UnderlyingNode.GetLeadingTriviaWidth() 122get { return UnderlyingNode != null ? new TextSpan(Position, UnderlyingNode.FullWidth) : default(TextSpan); } 130public bool ContainsDiagnostics => UnderlyingNode?.ContainsDiagnostics ?? false; 135public bool HasStructure => UnderlyingNode?.IsStructuredTrivia ?? false; 148internal bool ContainsAnnotations => UnderlyingNode?.ContainsAnnotations ?? false; 155return UnderlyingNode?.HasAnnotations(annotationKind) ?? false; 163return UnderlyingNode?.HasAnnotations(annotationKinds) ?? false; 171return UnderlyingNode?.HasAnnotation(annotation) ?? false; 179return UnderlyingNode != null 180? UnderlyingNode.GetAnnotations(annotationKind) 189return UnderlyingNode != null 190? UnderlyingNode.GetAnnotations(annotationKinds) 197public bool IsDirective => UnderlyingNode?.IsDirective ?? false; 199internal bool IsSkippedTokensTrivia => UnderlyingNode?.IsSkippedTokensTrivia ?? false; 200internal bool IsDocumentationCommentTrivia => UnderlyingNode?.IsDocumentationCommentTrivia ?? false; 209return HasStructure ? UnderlyingNode!.GetStructure(this) : null; 226return UnderlyingNode != null ? UnderlyingNode.ToString() : string.Empty; 237return UnderlyingNode != null ? UnderlyingNode.ToFullString() : string.Empty; 245UnderlyingNode?.WriteTo(writer); 270return Token == other.Token && UnderlyingNode == other.UnderlyingNode && Position == other.Position && Index == other.Index; 287return Hash.Combine(Token.GetHashCode(), Hash.Combine(UnderlyingNode, Hash.Combine(Position, Index))); 309if (this.UnderlyingNode != null) 313triviaNode: this.UnderlyingNode.WithAdditionalAnnotationsGreen(annotations), 338if (this.UnderlyingNode != null) 342triviaNode: this.UnderlyingNode.WithoutAnnotationsGreen(annotations), 372if (trivia.UnderlyingNode == null) 377if (this.UnderlyingNode == null) 382var annotations = this.UnderlyingNode.GetAnnotations(); 390triviaNode: trivia.UnderlyingNode.WithAdditionalAnnotationsGreen(annotations), 432(UnderlyingNode == null && trivia.UnderlyingNode == null) || 433(UnderlyingNode != null && trivia.UnderlyingNode != null && UnderlyingNode.IsEquivalentTo(trivia.UnderlyingNode));
Syntax\SyntaxTriviaList.cs (8)
47Node = trivia.UnderlyingNode; 84case 1: return trivias[0].UnderlyingNode!; 85case 2: return Syntax.InternalSyntax.SyntaxList.List(trivias[0].UnderlyingNode!, trivias[1].UnderlyingNode!); 86case 3: return Syntax.InternalSyntax.SyntaxList.List(trivias[0].UnderlyingNode!, trivias[1].UnderlyingNode!, trivias[2].UnderlyingNode!); 91copy[i].Value = trivias[i].UnderlyingNode!;
Syntax\SyntaxTriviaListBuilder.cs (7)
140return new SyntaxTriviaList(default(SyntaxToken), _nodes[0].UnderlyingNode, position: 0, index: 0); 144_nodes[0].UnderlyingNode!, 145_nodes[1].UnderlyingNode!), position: 0, index: 0); 149_nodes[0].UnderlyingNode!, 150_nodes[1].UnderlyingNode!, 151_nodes[2].UnderlyingNode!), 158tmp[i].Value = _nodes[i].UnderlyingNode!;