mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 07:50:47 +00:00
AS3: fixed continues at the end of ontrue && onfalse in the if clause
This commit is contained in:
@@ -694,8 +694,20 @@ public class Graph {
|
||||
|
||||
if (onTrue.isEmpty() && onFalse.isEmpty() && (trueStack.size() > stackSizeBefore) && (falseStack.size() > stackSizeBefore)) {
|
||||
stack.push(new TernarOpTreeItem(null, expr, trueStack.pop(), falseStack.pop()));
|
||||
} else {
|
||||
} else {
|
||||
ret.add(new IfTreeItem(null, expr, onTrue, onFalse));
|
||||
|
||||
//Same continues in onTrue and onFalse gets continue on parent level
|
||||
if((!onTrue.isEmpty())&&(!onFalse.isEmpty())){
|
||||
if(onTrue.get(onTrue.size()-1) instanceof ContinueTreeItem){
|
||||
if(onFalse.get(onFalse.size()-1) instanceof ContinueTreeItem){
|
||||
if(((ContinueTreeItem)onTrue.get(onTrue.size()-1)).loopPos==((ContinueTreeItem)onFalse.get(onFalse.size()-1)).loopPos){
|
||||
onTrue.remove(onTrue.size()-1);
|
||||
ret.add(onFalse.remove(onFalse.size()-1));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (loop && (part.nextParts.size() > 1)) {
|
||||
|
||||
Reference in New Issue
Block a user