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

finished up the CoffeeScript version of the Scope object

This commit is contained in:
Jeremy Ashkenas 2010-02-08 21:10:48 -05:00
parent 69808ba523
commit b8d22bc572
8 changed files with 244 additions and 143 deletions

View file

@ -362,7 +362,7 @@
}), o("WHILE Expression", function() {
return new WhileNode($2, null);
}), o("Expression WHILE Expression", function() {
return new WhileNode($3, Expressions.wrap($1));
return new WhileNode($3, Expressions.wrap([$1]));
})
],
// Array comprehensions, including guard and current index.
@ -460,11 +460,11 @@
If: [o("IfBlock IfEnd", function() {
return $1.add_else($2);
}), o("Expression IF Expression", function() {
return new IfNode($3, Expressions.wrap($1), null, {
return new IfNode($3, Expressions.wrap([$1]), null, {
statement: true
});
}), o("Expression UNLESS Expression", function() {
return new IfNode($3, Expressions.wrap($1), null, {
return new IfNode($3, Expressions.wrap([$1]), null, {
statement: true,
invert: true
});