AS1/2: fixed ignored push

This commit is contained in:
Jindra Petk
2013-07-13 12:51:37 +02:00
parent 3258ec4f07
commit 1ea00e5973
2 changed files with 8 additions and 3 deletions

View File

@@ -423,7 +423,7 @@ public class Action implements GraphSourceItem {
}
offset = a.getAddress();
if ((!(a.ignored)) && (a instanceof GraphSourceItemContainer)) {
if ((!(a.isIgnored())) && (a instanceof GraphSourceItemContainer)) {
GraphSourceItemContainer cnt = (GraphSourceItemContainer) a;
containersPos.put(cnt, 0);
List<Long> sizes = cnt.getContainerSizes();
@@ -471,7 +471,7 @@ public class Action implements GraphSourceItem {
ret.append(Highlighting.hilighOffset("", offset));
ret.append(a.replaceWith.getASMSource(list, importantOffsets, constantPool, version, hex));
ret.append("\r\n");
} else if (a.ignored) {
} else if (a.isIgnored()) {
if (lastPush) {
ret.append("\r\n");
lastPush = false;
@@ -527,7 +527,7 @@ public class Action implements GraphSourceItem {
} else {
ret.append(a.getASMSourceReplaced(list, importantOffsets, constantPool, version, hex));
}
ret.append(a.ignored ? "; ignored" : "");
ret.append(a.isIgnored() ? "; ignored" : "");
ret.append(add);
ret.append((a instanceof ActionPush) ? "" : "\r\n");
}