7 references to FilterComments
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (4)
882
.WithLeadingTrivia(leadingTrivia.Concat(node.GetLeadingTrivia()).
FilterComments
(addElasticMarker: false))
884
node.GetTrailingTrivia().Concat(SyntaxNodeOrTokenExtensions.GetTrivia(trailingNodesOrTokens).Concat(trailingTrivia)).
FilterComments
(addElasticMarker: false));
888
.WithTrailingTrivia(node.GetTrailingTrivia().
FilterComments
(addElasticMarker: true))
889
.WithLeadingTrivia(node.GetLeadingTrivia().
FilterComments
(addElasticMarker: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
226
token.TrailingTrivia.Concat(SyntaxNodeOrTokenExtensions.GetTrivia(trailingNodesOrTokens).Concat(trailingTrivia))).
FilterComments
(addElasticMarker: false));
229
=> token.WithTrailingTrivia(token.TrailingTrivia.
FilterComments
(addElasticMarker: true))
230
.WithLeadingTrivia(token.LeadingTrivia.
FilterComments
(addElasticMarker: true));