range comprehensions are working smooth

This commit is contained in:
Jeremy Ashkenas 2010-02-12 13:51:44 -05:00
parent 12859e575a
commit c0f9058f15
3 changed files with 3 additions and 3 deletions

View File

@ -1125,7 +1125,7 @@
this.name = __a[0];
this.index = __a[1];
}
this.children = [this.body, this.source, this.filter];
this.children = compact([this.body, this.source, this.filter]);
return this;
},
top_sensitive: function top_sensitive() {

View File

@ -20,7 +20,7 @@ module CoffeeScript
# Tokens pairs that, in immediate succession, indicate an implicit call.
IMPLICIT_FUNC = [:IDENTIFIER, :SUPER, ')', :CALL_END, ']', :INDEX_END]
IMPLICIT_END = [:IF, :UNLESS, :FOR, :WHILE, "\n", :OUTDENT]
IMPLICIT_END = [:IF, :UNLESS, :FOR, :WHILE, "\n", ';', :OUTDENT]
IMPLICIT_CALL = [:IDENTIFIER, :NUMBER, :STRING, :JS, :REGEX, :NEW, :PARAM_START,
:TRY, :DELETE, :TYPEOF, :SWITCH,
:TRUE, :FALSE, :YES, :NO, :ON, :OFF, '!', '!!', :NOT,

View File

@ -883,7 +883,7 @@ ForNode: exports.ForNode: inherit Node, {
@step: source.step
@object: !!source.object
[@name, @index]: [@index, @name] if @object
@children: [@body, @source, @filter]
@children: compact [@body, @source, @filter]
this
top_sensitive: ->