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

LEVEL_PAREN -> LEVEL_LIST

This commit is contained in:
Jeremy Ashkenas 2010-12-09 21:12:24 -05:00
parent 7b9286b2c2
commit 7c3ef56332
2 changed files with 2 additions and 2 deletions

View file

@ -1800,7 +1800,7 @@
step: this.step
}));
} else {
svar = this.source.compile(o, LEVEL_PAREN);
svar = this.source.compile(o, LEVEL_LIST);
if ((name || this.own) && !IDENTIFIER.test(svar)) {
defPart = "" + this.tab + (ref = scope.freeVariable('ref')) + " = " + svar + ";\n";
svar = ref;

View file

@ -1438,7 +1438,7 @@ exports.For = class For extends Base
if @range
forPart = source.compile merge(o, {index: ivar, @step})
else
svar = @source.compile o, LEVEL_PAREN
svar = @source.compile o, LEVEL_LIST
if (name or @own) and not IDENTIFIER.test svar
defPart = "#{@tab}#{ref = scope.freeVariable 'ref'} = #{svar};\n"
svar = ref