Red Gate forums :: View topic - Deactivate output of CompilerGenerated code
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.NET Reflector 7 EAP
.NET Reflector 7 EAP forum

Deactivate output of CompilerGenerated code

Search in .NET Reflector 7 EAP forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
sirbender



Joined: 16 Dec 2010
Posts: 9

PostPosted: Sat Dec 18, 2010 2:30 am    Post subject: Deactivate output of CompilerGenerated code Reply with quote

Hi,

as Clive Tong pointed out:
"I've added a bug report (RP-809) suggesting that we allow users to turn off the output of the CompilerGenerated types (or perhaps even do this automatically). Since these have usually been hidden in regenerated C# constructs, there is really no need to have them in the output files, and at the moment they cause these compilation errors."

If release 7 is capable of generating correct code with all the functionality that was in the originally compiled code I would prefer if one could switch off output of any CompilerGenerated sections so generated code has no errors.

I still don't understand why you output CompilerGenerated code? Is it in any way essential? What speaks against removing it?

Could you please let me know if there is a version of Reflector out with this feature so I can test it?

Thanks,
sb
Back to top
View user's profile Send private message
Bart Read



Joined: 31 Mar 2005
Posts: 977

PostPosted: Mon Dec 20, 2010 8:28 pm    Post subject: Reply with quote

We output it because historically Reflector was unable to recreate the original source constructs. However this has obviously changed over the past few years, for example, with the support for lambda expressions, F# (obviously still alpha), and now iterator blocks, and so there's increasingly less need to output the compiler generated code.

However, I think it's not as simple as merely turning off its output, as it can provide useful information where Reflector was unable to recreate the original source construct. A better solution would, I think, be to keep track of which blocks we have (and have not) been able to recreate source for, and then remove only those for which source constructs have been successfully generated.

Unfortunately I can't give you a timescale for when this might happen because we have other priorities for the v7 release. Obviously we do intend to improve this but I can't say more than that at the moment.


Thanks,


Bart
_________________
=============================
Bart Read
www.bartread.com/blog
=============================
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group