mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 08:18:11 +00:00
using stringbuilder for generating the AS source
This commit is contained in:
@@ -19,6 +19,7 @@ package com.jpexs.decompiler.flash.action.model;
|
||||
import com.jpexs.decompiler.flash.action.Action;
|
||||
import com.jpexs.decompiler.flash.action.swf4.ActionGetProperty;
|
||||
import com.jpexs.decompiler.flash.action.swf4.ActionPush;
|
||||
import com.jpexs.decompiler.flash.helpers.HilightedTextWriter;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItem;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItemPos;
|
||||
import com.jpexs.decompiler.graph.GraphTargetItem;
|
||||
@@ -45,11 +46,12 @@ public class GetPropertyActionItem extends ActionItem {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(boolean highlight, ConstantPool constants) {
|
||||
public HilightedTextWriter toString(HilightedTextWriter writer, ConstantPool constants) {
|
||||
if (isEmptyString(target)) {
|
||||
return hilight(Action.propertyNames[propertyIndex], highlight);
|
||||
return hilight(Action.propertyNames[propertyIndex], writer);
|
||||
}
|
||||
return target.toString(highlight, constants) + hilight("." + Action.propertyNames[propertyIndex], highlight);
|
||||
target.toString(writer, constants);
|
||||
return hilight("." + Action.propertyNames[propertyIndex], writer);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user