mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 06:50:51 +00:00
AS1/2 and AS3 now share common decompiling method
This commit is contained in:
+11
-10
@@ -16,16 +16,17 @@
|
||||
*/
|
||||
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 MBStringExtractTreeItem extends TreeItem {
|
||||
|
||||
public TreeItem value;
|
||||
public TreeItem index;
|
||||
public TreeItem count;
|
||||
public GraphTargetItem value;
|
||||
public GraphTargetItem index;
|
||||
public GraphTargetItem count;
|
||||
|
||||
public MBStringExtractTreeItem(Action instruction, TreeItem value, TreeItem index, TreeItem count) {
|
||||
public MBStringExtractTreeItem(GraphSourceItem instruction, GraphTargetItem value, GraphTargetItem index, GraphTargetItem count) {
|
||||
super(instruction, PRECEDENCE_PRIMARY);
|
||||
this.value = value;
|
||||
this.index = index;
|
||||
@@ -38,11 +39,11 @@ public class MBStringExtractTreeItem 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());
|
||||
ret.addAll(index.getNeededActions());
|
||||
ret.addAll(count.getNeededActions());
|
||||
public List<com.jpexs.decompiler.flash.graph.GraphSourceItemPos> getNeededSources() {
|
||||
List<com.jpexs.decompiler.flash.graph.GraphSourceItemPos> ret = super.getNeededSources();
|
||||
ret.addAll(value.getNeededSources());
|
||||
ret.addAll(index.getNeededSources());
|
||||
ret.addAll(count.getNeededSources());
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user