rewriting the Lexer, CommandLine, Nodes, and Rewriter to take advantage of the new DRY object pattern matching.

This commit is contained in:
Jeremy Ashkenas
2010-04-25 22:29:43 -04:00
parent a894db35fd
commit 2d1abd099d
9 changed files with 253 additions and 257 deletions

View File

@@ -14,10 +14,7 @@ else
Scope: this.Scope
# Import the helpers we plan to use.
compact: helpers.compact
flatten: helpers.flatten
merge: helpers.merge
del: helpers.del
{compact, flatten, merge, del}: helpers
# Helper function that marks a node as a JavaScript *statement*, or as a
# *pure_statement*. Statements must be wrapped in a closure when used as an