mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
added a nice --watch mode to continually recompile or relint (or reprint) your coffeescripts
This commit is contained in:
@@ -76,6 +76,7 @@ class ReturnNode < Node
|
||||
end
|
||||
|
||||
def compile(indent, scope, opts={})
|
||||
return @expression.compile(indent, scope, opts.merge(:return => true)) if @expression.custom_return?
|
||||
compiled = @expression.compile(indent, scope)
|
||||
@expression.statement? ? "#{compiled}\n#{indent}return null" : "return #{compiled}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user