#1145 AS3 better declaration type detection,

better convert_x instruction handling
This commit is contained in:
Jindra Petřík
2016-02-16 23:00:17 +01:00
parent 07b0e68bba
commit be8e4df4c7
16 changed files with 291 additions and 86 deletions

View File

@@ -50,6 +50,9 @@ public class DoWhileItem extends LoopItem implements Block {
@Override
public List<List<GraphTargetItem>> getSubs() {
List<List<GraphTargetItem>> ret = new ArrayList<>();
if (expression != null) {
ret.add(expression);
}
if (commands != null) {
ret.add(commands);
}

View File

@@ -45,6 +45,9 @@ public class WhileItem extends LoopItem implements Block {
@Override
public List<List<GraphTargetItem>> getSubs() {
List<List<GraphTargetItem>> ret = new ArrayList<>();
if (expression != null) {
ret.add(expression);
}
if (commands != null) {
ret.add(commands);
}