package
{
import flash.display.Sprite;
public class Sample extends Sprite
{
public function Sample()
{
var age:Number = 5;
}
}
}
After local variable to a field
package
{
import flash.display.Sprite;
public class Sample extends Sprite
{
//Blank before\after type separator is added although this option isn't
//selected in code style
privatevar age : Number;
public function Sample()
{
age = 5;
}
}
}
Description
Before
package
{
import flash.display.Sprite;
public class Sample extends Sprite
{
public function Sample()
{
var age:Number = 5;
}
}
}
After local variable to a field
package
{
import flash.display.Sprite;
public class Sample extends Sprite
{
//Blank before\after type separator is added although this option isn't
//selected in code style
privatevar age : Number;
public function Sample()
{
age = 5;
}
}
}
Extract to constant