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

Bugfix: Invalid code generation for literals with encoded entities like line breaks or unicode code points #70

Closed bernd5 closed 3 years ago

bernd5 commented 3 years ago

Bugfix: Invalid code generation for literals with encoded entities like line breaks or unicode code points

Sample code:

Console.WriteLine($"Foo\n!")
KirillOsenkov commented 3 years ago

Thanks! Would you mind adding a simple test here somewhere: https://github.com/KirillOsenkov/RoslynQuoter/blob/a89164fcdfae321d35dc92979794ec874c6bf249/src/Quoter.Tests/Tests.cs#L581

bernd5 commented 3 years ago

I added a test...

KirillOsenkov commented 3 years ago

Thanks!