Created
March 30, 2015 21:03
-
-
Save JoshVarty/55e7a9b45735c5923b2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Make some impossible non-whitespace trivia | |
var trivia = SyntaxFactory.SyntaxTrivia(SyntaxKind.WhitespaceTrivia, | |
@" | |
public void M() { | |
}"); | |
var node = SyntaxFactory.ClassDeclaration(" test") | |
.WithOpenBraceToken( | |
SyntaxFactory.Token(SyntaxKind.OpenBraceToken) | |
.WithTrailingTrivia(trivia) | |
); | |
Console.WriteLine(node.ToFullString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment