mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 03:18:08 +00:00
Issue #213 AS1/2 CallMethod parenthesis fix
This commit is contained in:
@@ -57,7 +57,11 @@ public class CallMethodTreeItem extends TreeItem {
|
||||
if (blankMethod) {
|
||||
return scriptObject.toString(constants) + hilight("(") + paramStr + hilight(")");
|
||||
}
|
||||
return scriptObject.toString(constants) + hilight(".") + stripQuotes(methodName, constants) + hilight("(") + paramStr + hilight(")");
|
||||
String soStr = scriptObject.toString(constants);
|
||||
if (scriptObject.precedence > this.precedence) {
|
||||
soStr = "(" + soStr + ")";
|
||||
}
|
||||
return soStr + hilight(".") + stripQuotes(methodName, constants) + hilight("(") + paramStr + hilight(")");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user