Issue #40, AS1/2 No logging + For..in..return decompilation

This commit is contained in:
Jindra Petk
2013-03-11 22:10:50 +01:00
parent 3b071a0464
commit 168ae601b4
9 changed files with 184 additions and 89 deletions

View File

@@ -41,7 +41,7 @@ public class WhileItem extends LoopItem implements Block {
public String toString(List localData) {
String ret = "";
ret += "loop" + loop.id + ":\r\n";
ret += hilight("while(") + expression.toString(localData) + hilight(")") + "\r\n{\r\n";
ret += hilight("while(") + (expression == null ? "null" : expression.toString(localData)) + hilight(")") + "\r\n{\r\n";
for (GraphTargetItem ti : commands) {
ret += ti.toStringSemicoloned(localData) + "\r\n";
}