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:
parent
69808ba523
commit
b8d22bc572
8 changed files with 244 additions and 143 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue