File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class ClassVisitor : CSharpSyntaxRewriter
1515 return node ;
1616
1717 // Add marker
18- var trivia = SyntaxFactory . TriviaList ( SyntaxFactory . Comment ( "/// <remark>" + marker + "</remark>" ) , SyntaxFactory . LineFeed ) . AddRange ( node . GetLeadingTrivia ( ) ) ;
18+ var trivia = node . GetLeadingTrivia ( ) . Add ( SyntaxFactory . Comment ( "/// <remark>" + marker + "</remark>" ) ) . Add ( SyntaxFactory . CarriageReturnLineFeed ) ;
1919 node = node . WithLeadingTrivia ( trivia ) ;
2020
2121 var propertyVisitor = new PropertyVisitor ( ) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ message TestMessageMapped {
3131 optional TestEnum enum_optional = 7 ;
3232}
3333
34+ //////////////////////////////////////////////
35+ // Test comment to check marker comment
36+ //////////////////////////////////////////////
3437message TestMessageEnum1 {
3538 optional TestEnum enum_optional = 7 ;
3639}
You can’t perform that action at this time.
0 commit comments