AS1/2 better handling chained assignments/preincrement

This commit is contained in:
Jindra Pet��k
2013-04-19 21:36:08 +02:00
parent f0ecb254da
commit 78704d9d02
5 changed files with 34 additions and 6 deletions
@@ -24,6 +24,7 @@ import com.jpexs.decompiler.flash.action.treemodel.IncrementTreeItem;
import com.jpexs.decompiler.flash.action.treemodel.PostDecrementTreeItem;
import com.jpexs.decompiler.flash.action.treemodel.PostIncrementTreeItem;
import com.jpexs.decompiler.flash.action.treemodel.SetVariableTreeItem;
import com.jpexs.decompiler.flash.action.treemodel.StoreRegisterTreeItem;
import com.jpexs.decompiler.flash.graph.GraphTargetItem;
import com.jpexs.decompiler.flash.helpers.Highlighting;
import java.util.HashMap;
@@ -82,6 +83,9 @@ public class ActionSetVariable extends Action {
}
}
}
if(value instanceof StoreRegisterTreeItem){
((StoreRegisterTreeItem)value).define=false;
}
SetVariableTreeItem svt = new SetVariableTreeItem(this, name, value);
output.add(svt);
}