mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 06:40:52 +00:00
AS1/2 better handling chained assignments/preincrement
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user