 # to:
 #   var foo = function foo() { }
 # 
-class FuncDeclsToVars extends NodeVisitor
+class FuncDeclsToVars extends TreeTransformer
         visitFunctionDeclaration: (n) ->
                 if n.toplevel
                         super

# 
#   2. There are no free variables in the function expressions.
#
class LambdaLift extends NodeVisitor
        constructor: (@filename) ->
                super
                @functions = []


# this should move to echo-desugar.coffee

class HoistFuncDecls extends TreeTransformer
        constructor: ->
                @prepends = []
                
