 syntax = esprima.Syntax
 debug = require 'debug'
 
-{ NodeVisitor } = require 'nodevisitor'
+{ TreeTransformer } = require 'nodevisitor'
 
 { create_intrinsic } = require 'echo-util'
 


                super

exports.run = (tree) ->

        eq_idioms = new EqIdioms

#
# ... more?
# 
class EqIdioms extends TreeTransformer
        is_typeof = (e) -> e.type is syntax.UnaryExpression and e.operator is "typeof"
        is_string_literal = (e) -> e.type is syntax.Literal and typeof e.value is "string"

