swapping around the order of variable declaration in array comprehensions, so that it comes out in the proper order: __a, __b, __c

This commit is contained in:
Jeremy Ashkenas
2010-01-11 09:16:08 -05:00
parent c7cb308b6d
commit 2f63439bff
7 changed files with 77 additions and 77 deletions

View File

@@ -655,9 +655,9 @@ module CoffeeScript
name_found = @name && scope.find(@name)
index_found = @index && scope.find(@index)
body_dent = idt(1)
rvar = scope.free_variable unless top_level
svar = scope.free_variable
ivar = range ? name : @index ? @index : scope.free_variable
rvar = scope.free_variable unless top_level
if range
index_var = scope.free_variable
source_part = source.compile_variables(o)