Issue Details (XML | Word | Printable)

Key: FDT-688
Type: Featurerequest Featurerequest
Status: Closed Closed
Resolution: Duplicate
Priority: Minor Minor
Assignee: FDT Team
Reporter: Troy Gardner
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.

Variable Refactoring

Created: 19/Sep/09 01:50 PM   Updated: 22/Jun/12 06:42 PM
Component/s: Refactoring
Affects Version/s: FDT 4.5.3
Fix Version/s: FDT 5.0
Security Level: public

Time Tracking:
Not Specified

Issue Links:

Review Type: Review by Product Owner

 Description  « Hide
Save we have this:

var a:ClassRef= new ClassRef():
I'd like the ability to refactor the defintion to a different scope e.g.

var a:ClassRef; //local scope
a= new ClassRef():


var a:ClassRef; //class scope
a= new ClassRef():

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Alan K (Deprecated) added a comment - 13/Oct/11 06:47 PM
We've added convert local variable to field, split declaration and extract local variable. This sovles most of these cases. One exception is the push up in scope. Perhaps this can be sovled by just moving the line of code with the editor

Pavel added a comment - 22/Nov/11 02:00 PM
Bug when trying to split declaration for (var i:int = 0; i < n; i++).
Results in: for (var i : int;i = 0; i < n; i++)

Alan K (Deprecated) added a comment - 22/Nov/11 04:35 PM
That is a bug. I've linked them issue

Thanks for finding that.