KirillOsenkov / RoslynQuoter

Roslyn tool that for a given C# program shows syntax tree API calls to construct its syntax tree
http://roslynquoter.azurewebsites.net
Apache License 2.0
922 stars 118 forks source link

Add support for parsing statements and expressions #11

Closed svick closed 8 years ago

svick commented 8 years ago

Currently, RoslynQuoter can only parse whole compilation units. If you want to see the code to generate a statement or an expression, you have to write it inside a method inside a class and then you need to figure out which part of the output do you actually need.

It would be nice if RoslynQuoter could support parsing statements and expressions directly.

Support for parsing methods would also be nice, but there doesn't seem to be a suitable SyntaxFactory.Parse* method for that.

KirillOsenkov commented 8 years ago

Merged and deployed, thanks!