2 writes to Node
Microsoft.CodeAnalysis (2)
Syntax\SyntaxToken.cs (2)
33
Node
= token;
42
Node
= token;
93 references to Node
Microsoft.CodeAnalysis (93)
Syntax\SeparatedSyntaxListBuilder.cs (2)
78
Debug.Assert(separatorToken.
Node
is object);
81
_builder.AddInternal(separatorToken.
Node
);
Syntax\SyntaxNodeOrToken.cs (1)
775
return new SyntaxNodeOrToken(token.Parent, token.
Node
, token.Position, token.Index);
Syntax\SyntaxNodeOrTokenListBuilder.cs (2)
77
RoslynDebug.Assert(item.
Node
is object);
78
this.Add(item.
Node
);
Syntax\SyntaxToken.cs (70)
47
return GetType().Name + " " + (
Node
!= null ?
Node
.KindText : "None") + " " + ToString();
53
public int RawKind =>
Node
?.RawKind ?? 0;
58
public string Language =>
Node
?.Language ?? string.Empty;
70
internal int RawContextualKind =>
Node
?.RawContextualKind ?? 0;
83
Debug.Assert(
Node
is object);
84
return
Node
;
95
internal int Width =>
Node
?.Width ?? 0;
100
internal int FullWidth =>
Node
?.FullWidth ?? 0;
109
return
Node
!= null ? new TextSpan(Position +
Node
.GetLeadingTriviaWidth(),
Node
.Width) : default(TextSpan);
115
get { return
Node
!= null ? Position +
Node
.FullWidth : 0; }
126
get { return
Node
!= null ? Position +
Node
.GetLeadingTriviaWidth() : 0; }
139
public bool IsMissing =>
Node
?.IsMissing ?? false;
145
public object? Value =>
Node
?.GetValue();
151
public string ValueText =>
Node
?.GetValueText() ?? string.Empty;
162
return
Node
!= null ?
Node
.ToString() : string.Empty;
172
return
Node
!= null ?
Node
.ToFullString() : string.Empty;
180
Node
?.WriteTo(writer);
188
Node
?.WriteTo(writer, leading, trailing);
204
internal int LeadingWidth =>
Node
?.GetLeadingTriviaWidth() ?? 0;
209
internal int TrailingWidth =>
Node
?.GetTrailingTriviaWidth() ?? 0;
214
public bool ContainsDiagnostics =>
Node
?.ContainsDiagnostics ?? false;
219
public bool ContainsDirectives =>
Node
?.ContainsDirectives ?? false;
232
public bool HasStructuredTrivia =>
Node
?.ContainsStructuredTrivia ?? false;
239
public bool ContainsAnnotations =>
Node
?.ContainsAnnotations ?? false;
246
return
Node
?.HasAnnotations(annotationKind) ?? false;
254
return
Node
?.HasAnnotations(annotationKinds) ?? false;
262
return
Node
?.HasAnnotation(annotation) ?? false;
270
return
Node
?.GetAnnotations(annotationKind) ?? SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>();
286
return
Node
?.GetAnnotations(annotationKinds) ?? SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>();
309
if (this.
Node
!= null)
313
token:
Node
.WithAdditionalAnnotationsGreen(annotations),
339
if (this.
Node
!= null)
343
token:
Node
.WithoutAnnotationsGreen(annotations),
377
if (token.
Node
== null)
382
if (
Node
== null)
387
var annotations = this.
Node
.GetAnnotations();
392
token: token.
Node
.WithAdditionalAnnotationsGreen(annotations),
409
return
Node
!= null
410
? new SyntaxTriviaList(this,
Node
.GetLeadingTriviaCore(), this.Position)
423
if (
Node
== null)
428
var leading =
Node
.GetLeadingTriviaCore();
435
var trailingGreen =
Node
.GetTrailingTriviaCore();
478
return
Node
!= null
479
? new SyntaxToken(null,
Node
.WithLeadingTrivia(GreenNode.CreateList(trivia, static t => t.RequiredUnderlyingNode)), position: 0, index: 0)
504
return
Node
!= null
505
? new SyntaxToken(null,
Node
.WithTrailingTrivia(GreenNode.CreateList(trivia, static t => t.RequiredUnderlyingNode)), position: 0, index: 0)
555
Node
== other.
Node
&&
574
return Hash.Combine(Parent, Hash.Combine(
Node
, Hash.Combine(Position, Index)));
583
if (
Node
== null)
600
if (
Node
== null)
614
if (
Node
== null)
658
if (
Node
== null)
667
var diagnostics =
Node
.GetDiagnostics();
683
(
Node
== null && token.
Node
== null) ||
684
(
Node
!= null && token.
Node
!= null &&
Node
.IsEquivalentTo(token.
Node
));
702
=> this.
Node
!= null && this.
Node
== token.
Node
;
Syntax\SyntaxTokenList.cs (10)
42
Node = token.
Node
;
78
case 1: return tokens[0].
Node
;
79
case 2: return Syntax.InternalSyntax.SyntaxList.List(tokens[0].
Node
!, tokens[1].
Node
!);
80
case 3: return Syntax.InternalSyntax.SyntaxList.List(tokens[0].
Node
!, tokens[1].
Node
!, tokens[2].
Node
!);
85
copy[i].Value = tokens[i].
Node
!;
102
Debug.Assert(token.
Node
is object);
103
builder.Add(token.
Node
);
Syntax\SyntaxTokenListBuilder.cs (3)
36
Debug.Assert(item.
Node
is object);
37
this.Add(item.
Node
);
68
_nodes[_count + i] = list[offset + i].
Node
;
Syntax\SyntaxTriviaList.Enumerator.cs (5)
57
Debug.Assert(token.
Node
is object);
58
var node = token.
Node
.GetLeadingTriviaCore();
68
Debug.Assert(token.
Node
is object);
69
var leading = token.
Node
.GetLeadingTriviaCore();
76
var trailingGreen = token.
Node
.GetTrailingTriviaCore();