8 references to TriviaList
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxExtensions.cs (1)
128
return SyntaxFactory.
TriviaList
(sequence);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (3)
59
var remainingLeadingTrivia = SyntaxFactory.
TriviaList
(leadingTrivia.Skip(skippedTriviaIndex + 1));
65
.WithLeadingTrivia(SyntaxFactory.
TriviaList
(remainingLeadingTrivia.Skip(trailingTriviaTakeUntil)))
69
.WithTrailingTrivia(SyntaxFactory.
TriviaList
(remainingLeadingTrivia.Take(trailingTriviaTakeUntil)));
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (1)
140
var commentsToPreserve =
TriviaList
(statement.GetLeadingTrivia().Skip(triviaToMove.Count));
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (3)
59
var remainingLeadingTrivia = SyntaxFactory.
TriviaList
(leadingTrivia.Skip(skippedTriviaIndex + 1));
65
.WithLeadingTrivia(SyntaxFactory.
TriviaList
(remainingLeadingTrivia.Skip(trailingTriviaTakeUntil)))
69
.WithTrailingTrivia(SyntaxFactory.
TriviaList
(remainingLeadingTrivia.Take(trailingTriviaTakeUntil)));