 { tokens, nodes } = require 'coffee-script'
-{ Code, Param, Literal } = require '../node_modules/coffee-script/lib/coffee-script/nodes'
+{ Code, Block, Param, Literal } = require '../node_modules/coffee-script/lib/coffee-script/nodes'
 { Scope } = require '../node_modules/coffee-script/lib/coffee-script/scope'
 { Range } = require 'atom'
 

        dests.push child
    dests

  @hasDeclarations: (node, target) ->
    node.compileNode node
    return true for variable in node.scope.variables when variable.name is target.value
    false

  @isContains: (node, target) ->

    node.traverseChildren true, (child) ->
      # return false if node.classBody
      if child instanceof Literal
        unless child.locationData?
          console.log child
        if Parser.isEqualLocationData child.locationData, targetLocationData
          target = child
          return false
