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
@@ -23,6 +23,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.SetPropertyTreeItem;
import com.jpexs.decompiler.flash.action.treemodel.StoreRegisterTreeItem;
import com.jpexs.decompiler.flash.graph.GraphTargetItem;
import java.util.HashMap;
import java.util.List;
@@ -70,6 +71,9 @@ public class ActionSetProperty extends Action {
}
}
}
if(value instanceof StoreRegisterTreeItem){
((StoreRegisterTreeItem)value).define=false;
}
output.add(new SetPropertyTreeItem(this, target, indexInt, value));
}
}