mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
many more comments, plus a fix for inner-assignment indentation
This commit is contained in:
@@ -205,7 +205,7 @@ class AssignNode < Node
|
||||
name = @variable.compile(indent, scope) if @variable.respond_to?(:compile)
|
||||
last = @variable.respond_to?(:last) ? @variable.last : name
|
||||
opts = opts.merge({:assign => name, :last_assign => last})
|
||||
value = @value.compile(indent, scope, opts)
|
||||
value = @value.compile(indent + TAB, scope, opts)
|
||||
return "#{@variable}: #{value}" if @context == :object
|
||||
return "#{name} = #{value}" if @variable.properties?
|
||||
defined = scope.find(name)
|
||||
|
||||
Reference in New Issue
Block a user