1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

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

View file

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

View file

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