AS1/2 switch detection fix - default clause also used when detecting break

This commit is contained in:
Jindra Petřík
2018-01-28 10:03:39 +01:00
parent 654fd8ba6d
commit 7380c3c604

View File

@@ -308,8 +308,6 @@ public class ActionGraph extends Graph {
defaultPart = defaultPart.nextParts.get(0);
}
GraphPart breakPart = getMostCommonPart(localData, caseBodyParts, loops);
List<GraphTargetItem> caseValues = new ArrayList<>();
boolean hasDefault = false;
/*
@@ -362,6 +360,7 @@ public class ActionGraph extends Graph {
caseValues.add(caseValuesMap.get(caseValuesMap.size() - 1));
}
GraphPart breakPart = getMostCommonPart(localData, caseBodyParts, loops);
List<List<GraphTargetItem>> caseCommands = new ArrayList<>();
GraphPart next = breakPart;