Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315669 - Refactoring: Reverse Loop
Summary: Refactoring: Reverse Loop
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Refactoring Engine (show other bugs)
Version: 6.0   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 7.0   Edit
Assignee: Ashley Kasza CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 315665
Blocks:
  Show dependency tree
 
Reported: 2010-06-03 16:25 EDT by Ashley Kasza CLA
Modified: 2011-05-14 06:49 EDT (History)
2 users (show)

See Also:


Attachments
reverseLoopPatch (17.21 KB, text/plain)
2010-06-03 16:25 EDT, Ashley Kasza CLA
com-eclipse-dot-org: iplog+
Details
Final test case (depends on Reindenter changes) (1.63 KB, patch)
2010-06-22 19:42 EDT, Jeffrey Overbey CLA
g.watson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ashley Kasza CLA 2010-06-03 16:25:55 EDT
Created attachment 171018 [details]
reverseLoopPatch

Takes a Do loop and reverses it (do i=1,10,1 -> do i=10,1,-1)
Comment 1 Jeffrey Overbey CLA 2010-06-03 16:49:18 EDT
Thanks, Ashley.  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?
Comment 2 Ashley Kasza CLA 2010-06-04 17:59:54 EDT
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.
Comment 3 Jeffrey Overbey CLA 2010-06-15 18:09:53 EDT
This is a small contribution, so we will not need to file a CQ.
Comment 4 Jeffrey Overbey CLA 2010-06-22 19:42:57 EDT
Created attachment 172474 [details]
Final test case (depends on Reindenter changes)
Comment 5 Jeffrey Overbey CLA 2010-06-22 19:48:31 EDT
Thanks.  I have committed this to CVS except for the last test case which does not pass (cf. attachment); we should revisit that when the Reindenter changes are in CVS.

Ashley, 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 after we put the last test case in.  Thanks a lot.
Comment 6 Jeffrey Overbey CLA 2010-07-14 16:30:17 EDT
Documentation added