FuGetGallery icon indicating copy to clipboard operation
FuGetGallery copied to clipboard

Decompiled code doesn't show interpolated strings properly

Open Tyrrrz opened this issue 7 years ago • 1 comments
trafficstars

Hello

First of all, thanks for this amazing web app, it's really useful and very well done! I especially like how it renders XML docs when navigating through the API. <3

When browsing my own libraries, I've noticed that the decompiled code doesn't seem to be showing interpolated strings properly.

Compare this to this. E.g. method GetUrl should return $"https://www.youtube.com/watch?v={video.Id}"; but the decompiled code claims it should return return $"""{video.Id}"; which shouldn't even compile.

Also attaching screenshots in case the code changes. image image

Tyrrrz avatar Jun 28 '18 18:06 Tyrrrz

I can see the problem is the literal youtube.com part of the string is passed to WritePrimitiveValue in the literalValue param, but it is ignored.

OTOH, given that the NRefactory library doesn't support C# 6, a better fix might be to switch to Roslyn.

darthwalsh avatar Dec 08 '18 17:12 darthwalsh