AS1/2: #93 fixed switch detection

AS2: Better class detection
This commit is contained in:
Jindra Petk
2013-05-19 08:13:31 +02:00
parent 2b98fa5d43
commit 49102ce719
3 changed files with 26 additions and 20 deletions

View File

@@ -160,7 +160,7 @@ public class ActionGraph extends Graph {
int cnt = 1;
while (part.nextParts.size() > 1
&& part.nextParts.get(1).getHeight() > 1
&& code.get(part.nextParts.get(1).end) instanceof ActionIf
&& code.get(part.nextParts.get(1).end >= code.size() ? code.size() - 1 : part.nextParts.get(1).end) instanceof ActionIf
&& ((top = translatePartGetStack(localData, part.nextParts.get(1), stack)) instanceof StrictEqTreeItem)) {
cnt++;
part = part.nextParts.get(1);