rebuild for some unneccessary parentheses changes

rebuild of 3921e3db34
This commit is contained in:
Michael Ficarra 2013-04-28 22:09:46 -05:00
parent 3921e3db34
commit 174cd7eaa0
3 changed files with 7 additions and 7 deletions

View File

@ -439,7 +439,7 @@
};
timeLog = function(message) {
return console.log("" + (new Date().toLocaleTimeString()) + " - " + message);
return console.log("" + ((new Date).toLocaleTimeString()) + " - " + message);
};
printTokens = function(tokens) {
@ -516,7 +516,7 @@
};
usage = function() {
return printLine(new optparse.OptionParser(SWITCHES, BANNER).help());
return printLine((new optparse.OptionParser(SWITCHES, BANNER)).help());
};
version = function() {

View File

@ -38,7 +38,7 @@
if (opts.rewrite === false) {
return this.tokens;
}
return new Rewriter().rewrite(this.tokens);
return (new Rewriter).rewrite(this.tokens);
};
Lexer.prototype.clean = function(code) {

View File

@ -637,7 +637,7 @@
Return.prototype.compileNode = function(o) {
var answer;
answer = [];
answer.push(this.makeCode(this.tab + ("return" + [this.expression ? " " : void 0])));
answer.push(this.makeCode(this.tab + ("return" + (this.expression ? " " : ""))));
if (this.expression) {
answer = answer.concat(this.expression.compileToFragments(o, LEVEL_PAREN));
}
@ -866,7 +866,7 @@
accesses.push(new Access(new Literal('constructor')));
}
accesses.push(new Access(new Literal(method.name)));
return new Value(new Literal(method.klass), accesses).compile(o);
return (new Value(new Literal(method.klass), accesses)).compile(o);
} else if (method != null ? method.ctor : void 0) {
return "" + method.name + ".__super__.constructor";
} else {
@ -1382,7 +1382,7 @@
_ref4 = this.boundFuncs;
for (_i = 0, _len = _ref4.length; _i < _len; _i++) {
bvar = _ref4[_i];
lhs = new Value(new Literal("this"), [new Access(bvar)]).compile(o);
lhs = (new Value(new Literal("this"), [new Access(bvar)])).compile(o);
this.ctor.body.unshift(new Literal("" + lhs + " = " + (utility('bind')) + "(" + lhs + ", this)"));
}
};
@ -2673,7 +2673,7 @@
}
if (this.guard) {
if (body.expressions.length > 1) {
body.expressions.unshift(new If(new Parens(this.guard).invert(), new Literal("continue")));
body.expressions.unshift(new If((new Parens(this.guard)).invert(), new Literal("continue")));
} else {
if (this.guard) {
body = Block.wrap([new If(this.guard, body)]);