mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 15:30:46 +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 MBStringLengthTreeItem extends TreeItem {
|
||||
|
||||
public TreeItem value;
|
||||
public GraphTargetItem value;
|
||||
|
||||
public MBStringLengthTreeItem(Action instruction, TreeItem value) {
|
||||
public MBStringLengthTreeItem(GraphSourceItem instruction, GraphTargetItem value) {
|
||||
super(instruction, PRECEDENCE_PRIMARY);
|
||||
this.value = value;
|
||||
}
|
||||
@@ -38,9 +39,9 @@ public class MBStringLengthTreeItem extends TreeItem {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<com.jpexs.decompiler.flash.action.IgnoredPair> getNeededActions() {
|
||||
List<com.jpexs.decompiler.flash.action.IgnoredPair> ret = super.getNeededActions();
|
||||
ret.addAll(value.getNeededActions());
|
||||
public List<com.jpexs.decompiler.flash.graph.GraphSourceItemPos> getNeededSources() {
|
||||
List<com.jpexs.decompiler.flash.graph.GraphSourceItemPos> ret = super.getNeededSources();
|
||||
ret.addAll(value.getNeededSources());
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user