Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

AS3 refactoring: convert local var to instance var

$
0
0

this one should be pretty straigtforward but I cant seem to find it:

 

given that I start out like this:

 

public function someFunction():void {

          var someVar:String = "whatever";

}

 

lots of times I need to promote someVar to the instance level:

 

private var _someVar:String;

public function someFunction():void {

          _someVar = "whatever";

}

 

is there a refactor action for that? this is different from the create getters/setters action, in that I dont need those

 

thanks


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>