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

Not working (NotSupportedException) with Microsoft.CodeAnalysis version 2.8.2 (on2.7. work) #41

Closed neurosystemeu closed 6 years ago

neurosystemeu commented 6 years ago

When try : var quoter = new Quoter { OpenParenthesisOnNewLine = false, ClosingParenthesisOnNewLine = false, UseDefaultFormatting = !false, RemoveRedundantModifyingCalls = !false, ShortenCodeWithUsingStatic = !false };

        `var t = quoter.Quote(@"this.Nowy.Funkcja(this.Ala * 2, 2)", NodeKind.Expression);`

The exception is thrown: throw new NotSupportedException("Sorry, this is a bug in Quoter. Please file a bug at https://github.com/KirillOsenkov/RoslynQuoter/issues/new.");

The same code work ok with Microsoft.CodeAnalysis version 2.7.0

KirillOsenkov commented 6 years ago

Fixed with https://github.com/KirillOsenkov/RoslynQuoter/commit/3a7df64ccc4caf1a2b556fde1ab202798de50cb2 and deployed Roslyn 2.8.2 to the website.