mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 13:10:46 +00:00
AS3: precedence parentheses - call, new
This commit is contained in:
@@ -44,7 +44,11 @@ public class ConstructTreeItem extends TreeItem {
|
||||
if (object instanceof NewFunctionTreeItem) {
|
||||
return object.toString(constants, localRegNames, fullyQualifiedNames);
|
||||
}
|
||||
return hilight("new ") + object.toString(constants, localRegNames, fullyQualifiedNames) + hilight("(") + argStr + hilight(")");
|
||||
String obStr = object.toString(constants, localRegNames, fullyQualifiedNames);
|
||||
if (object.precedence > precedence) {
|
||||
obStr = "(" + obStr + ")";
|
||||
}
|
||||
return hilight("new ") + obStr + hilight("(") + argStr + hilight(")");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user