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