mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 04:21:19 +00:00
highlight parameter added
This commit is contained in:
@@ -44,19 +44,19 @@ public class InitObjectActionItem extends ActionItem {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(ConstantPool constants) {
|
||||
public String toString(boolean highlight, ConstantPool constants) {
|
||||
String objStr = "";
|
||||
for (int i = 0; i < values.size(); i++) {
|
||||
if (i > 0) {
|
||||
objStr += hilight(",");
|
||||
objStr += hilight(",", highlight);
|
||||
}
|
||||
String valueStr = values.get(i).toString(constants);
|
||||
String valueStr = values.get(i).toString(highlight, constants);
|
||||
if (values.get(i) instanceof TernarOpItem) { //Ternar operator contains ":"
|
||||
valueStr = "(" + valueStr + ")";
|
||||
}
|
||||
objStr += names.get(i).toStringNoQuotes(constants) + hilight(":") + valueStr; //AS1/2 do not allow quotes in name here
|
||||
objStr += names.get(i).toStringNoQuotes(highlight, constants) + hilight(":", highlight) + valueStr; //AS1/2 do not allow quotes in name here
|
||||
}
|
||||
return hilight("{") + objStr + hilight("}");
|
||||
return hilight("{", highlight) + objStr + hilight("}", highlight);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user