using stringbuilder for generating the AS source

This commit is contained in:
Honfika
2013-10-12 21:38:15 +02:00
parent 3f34d66f47
commit 0c9ea12f03
195 changed files with 1522 additions and 841 deletions
@@ -17,6 +17,7 @@
package com.jpexs.decompiler.flash.action.model;
import com.jpexs.decompiler.flash.action.swf3.ActionGetURL;
import com.jpexs.decompiler.flash.helpers.HilightedTextWriter;
import com.jpexs.decompiler.graph.GraphSourceItem;
import com.jpexs.decompiler.graph.SourceGenerator;
import com.jpexs.helpers.Helper;
@@ -36,8 +37,10 @@ public class FSCommandActionItem extends ActionItem {
}
@Override
public String toString(boolean highlight, ConstantPool constants) {
return hilight("fscommand(\"", highlight) + Helper.escapeString(command) + hilight("\")", highlight);
public HilightedTextWriter toString(HilightedTextWriter writer, ConstantPool constants) {
hilight("fscommand(\"", writer);
hilight(Helper.escapeString(command), writer);
return hilight("\")", writer);
}
@Override