mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 17:20:46 +00:00
+21
-1
@@ -60,6 +60,26 @@ public class ForEachInAVM2Item extends LoopItem implements Block {
|
||||
|
||||
public ForEachInAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Loop loop, InAVM2Item expression, List<GraphTargetItem> commands) {
|
||||
super(instruction, lineStartIns, loop);
|
||||
|
||||
/*
|
||||
Following was commented out:
|
||||
|
||||
The code should fix following:
|
||||
for each (var a in col)
|
||||
{
|
||||
var b = a; //a is temp reg
|
||||
trace(b);
|
||||
}
|
||||
|
||||
but fails for following:
|
||||
for each (var a in col)
|
||||
{
|
||||
c[a] = a;
|
||||
}
|
||||
|
||||
|
||||
*/
|
||||
/*
|
||||
if (!commands.isEmpty()) {
|
||||
GraphTargetItem firstAssign = commands.get(0);
|
||||
if (firstAssign instanceof SetTypeAVM2Item) {
|
||||
@@ -74,7 +94,7 @@ public class ForEachInAVM2Item extends LoopItem implements Block {
|
||||
}
|
||||
//locAssign.
|
||||
}
|
||||
}
|
||||
}*/
|
||||
this.expression = expression;
|
||||
this.commands = commands;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user