Esempio n. 1
0
 public static SyntaxToken WithCommentsFrom(
     this SyntaxToken token,
     IEnumerable <SyntaxTrivia> leadingTrivia,
     IEnumerable <SyntaxTrivia> trailingTrivia,
     params SyntaxNodeOrToken[] trailingNodesOrTokens)
 => token
 .WithPrependedLeadingTrivia(leadingTrivia)
 .WithTrailingTrivia((
                         token.TrailingTrivia.Concat(SyntaxNodeOrTokenExtensions.GetTrivia(trailingNodesOrTokens).Concat(trailingTrivia))).FilterComments(addElasticMarker: false));
Esempio n. 2
0
 public static IEnumerable <SyntaxNodeOrToken> DepthFirstTraversal(this SyntaxNode node)
 {
     return(SyntaxNodeOrTokenExtensions.DepthFirstTraversal(node));
 }