Open-source at
https://github.com/KirillOsenkov/RoslynQuoter
Parse as:
Regular-File
Script-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;'
Ready-To-Run (with compilation and diagnostics)
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()