def type_new_with_args(self, node):
        result = "new %s" % self.compress(node[0])
        
        # Compress new Object(); => new Object;
        if len(node[1]) > 0:
            result += "(%s)" % self.compress(node[1])
        else:
            parent = getattr(node, "parent", None)
            if parent and parent.type is "dot":
                result += "()"
            
        return result
dataset/ETHPy150Open zynga/jasy/jasy/js/output/Compressor.py/Compressor.type_new_with_args/original