mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 08:30:47 +00:00
AS1/2 and AS3 now share common decompiling method
This commit is contained in:
@@ -16,14 +16,15 @@
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.action.treemodel;
|
||||
|
||||
import com.jpexs.decompiler.flash.action.Action;
|
||||
import com.jpexs.decompiler.flash.graph.GraphSourceItem;
|
||||
import com.jpexs.decompiler.flash.graph.GraphTargetItem;
|
||||
import java.util.List;
|
||||
|
||||
public class DecrementTreeItem extends TreeItem {
|
||||
|
||||
public TreeItem object;
|
||||
public GraphTargetItem object;
|
||||
|
||||
public DecrementTreeItem(Action instruction, TreeItem object) {
|
||||
public DecrementTreeItem(GraphSourceItem instruction, GraphTargetItem object) {
|
||||
super(instruction, PRECEDENCE_ADDITIVE);
|
||||
this.object = object;
|
||||
}
|
||||
@@ -44,9 +45,9 @@ public class DecrementTreeItem extends TreeItem {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<com.jpexs.decompiler.flash.action.IgnoredPair> getNeededActions() {
|
||||
List<com.jpexs.decompiler.flash.action.IgnoredPair> ret = super.getNeededActions();
|
||||
ret.addAll(object.getNeededActions());
|
||||
public List<com.jpexs.decompiler.flash.graph.GraphSourceItemPos> getNeededSources() {
|
||||
List<com.jpexs.decompiler.flash.graph.GraphSourceItemPos> ret = super.getNeededSources();
|
||||
ret.addAll(object.getNeededSources());
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user