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
918 stars 118 forks source link

Check syntax errors before generate the syntax tree? #45

Closed Cyl18 closed 3 years ago

Cyl18 commented 5 years ago

image

KirillOsenkov commented 5 years ago

I’d say this is by design as sometimes you need to know how to generate trees to represent invalid programs.

Perhaps we could warn you if the tree has parse errors, but it should be apparent from all the missing and skipped tokens.