Fixed AS1/2 - spacing in with statement

This commit is contained in:
Jindra Petřík
2021-11-28 22:45:28 +01:00
parent 052049f695
commit 6ef57d66f5
5 changed files with 30 additions and 6 deletions

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash.action.model.clauses;
import com.jpexs.decompiler.flash.SWF;
@@ -59,11 +60,10 @@ public class WithActionItem extends ActionItem {
}
writer.append("(");
scope.toString(writer, localData);
scope.toString(writer, localData);
writer.append(")").startBlock();
for (GraphTargetItem ti : items) {
ti.toString(writer, localData).newLine();
}
writer.append(")");
appendBlock(null, writer, localData, items);
return writer;
}
@Override
@@ -83,4 +83,10 @@ public class WithActionItem extends ActionItem {
public boolean hasReturnValue() {
return false;
}
@Override
public boolean needsSemicolon() {
return false;
}
}