1 write to _residualTrivia
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxNodeRemover.cs (1)
64
_residualTrivia
= SyntaxTriviaListBuilder.Create();
14 references to _residualTrivia
Microsoft.CodeAnalysis.CSharp (14)
Syntax\SyntaxNodeRemover.cs (14)
87
if (
_residualTrivia
!= null)
89
return
_residualTrivia
.ToList();
105
_residualTrivia
.Add(trivia);
115
if (
_residualTrivia
.Count == 0 || !IsEndOfLine(
_residualTrivia
[
_residualTrivia
.Count - 1]))
117
_residualTrivia
.Add(eolTrivia.Value);
161
return node.FullSpan.IntersectsWith(_searchSpan) || (
_residualTrivia
!= null &&
_residualTrivia
.Count > 0);
196
if (result.Kind() != SyntaxKind.None &&
_residualTrivia
!= null &&
_residualTrivia
.Count > 0)
198
_residualTrivia
.Add(result.LeadingTrivia);
199
result = result.WithLeadingTrivia(
_residualTrivia
.ToList());
200
_residualTrivia
.Clear();