Open-source at
https://github.com/KirillOsenkov/RoslynQuoter
Parse as:
File
Member
Statement
Expression
Open parenthesis on a new line
Closing parenthesis on a new line
Preserve original whitespace
Keep redundant API calls
Do not require 'using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;'
Get Roslyn API calls to generate this code!
Working...
Get Roslyn API calls to generate this code as LINQPad file!
CompilationUnit() .WithMembers( SingletonList<MemberDeclarationSyntax>( ClassDeclaration("C"))) .NormalizeWhitespace()