mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
part of the way to supporting multiline array comprehensions -- the grammar and parsing is there -- the code generation is tricky
This commit is contained in:
@@ -571,6 +571,8 @@ module CoffeeScript
|
||||
if o[:return] || o[:assign]
|
||||
return_result = "#{o[:assign].compile(o)} = #{return_result}" if o[:assign]
|
||||
return_result = "return #{return_result}" if o[:return]
|
||||
o.delete(:assign)
|
||||
o.delete(:return)
|
||||
if @filter
|
||||
body = CallNode.new(ValueNode.new(LiteralNode.new(rvar), [AccessorNode.new('push')]), [@body])
|
||||
body = IfNode.new(@filter, body, nil, :statement => true)
|
||||
|
||||
Reference in New Issue
Block a user