parser test raises some minor improvements (remove unnecessary ValueNode arrays, etc

This commit is contained in:
Jeremy Ashkenas
2009-12-18 07:11:01 -05:00
parent 92adabdddc
commit 669c065dd7
6 changed files with 23 additions and 17 deletions

View File

@@ -157,8 +157,9 @@ module CoffeeScript
index = 0
loop do
tok = @tokens[index -= 1]
return if !tok || tok[0] != :IDENTIFIER
return if !tok
next if tok[0] == ','
return if tok[0] != :IDENTIFIER
tok[0] = :PARAM
end
end