AS3: construct needs parentheses

This commit is contained in:
Jindra Petk
2013-01-02 12:21:31 +01:00
parent d78c91d9a8
commit 586dfe374b

View File

@@ -45,9 +45,7 @@ public class ConstructTreeItem extends TreeItem {
return object.toString(constants, localRegNames, fullyQualifiedNames);
}
String obStr = object.toString(constants, localRegNames, fullyQualifiedNames);
if (object.precedence > precedence) {
obStr = "(" + obStr + ")";
}
obStr = "(" + obStr + ")";
return hilight("new ") + obStr + hilight("(") + argStr + hilight(")");
}