Community
Participate
Working Groups
Created attachment 171165 [details] code Added a new refactoring called RemoveComputedGoTo Refactoring and its tests
Thanks, Rui. Can you please confirm that 1. you wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others, 2. you have the right to contribute the code to Eclipse, and 3. you have included the EPL license header in all source files?
(In reply to comment #1) > Thanks, Rui. Can you please confirm that > > 1. you wrote 100% of the code without incorporating content from elsewhere or > relying on the intellectual property of others, > > 2. you have the right to contribute the code to Eclipse, and > > 3. you have included the EPL license header in all source files? I confirm that 1. I wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others, 2. I have the right to contribute the code to Eclipse, and 3. I have included the EPL license header in all source files?
This is a small contribution, so we will not need to file a CQ.
Thanks, Rui. I committed this to CVS with some minor changes: 1. I changed the makeSelectStmt() method to use a StringBuilder rather than string concatenation (concatenation performs a lot of unnecessary copying and uses a StringBuilder internally anyway). 2. I changed several fields to local variables since they were only used in one method. 3. Some of the casts to IASTNode were unnecessary.
Rui, could you please add documentation for this refactoring to the Photran *7.0* Advanced Features manual? It is here: http://wiki.eclipse.org/PTP/photran/documentation/photran7advanced Please follow the general form used for the other refactorings. Let me know when that's done, and we can close this bug. Thanks a lot.
Documentation is done.