 
     target
 
-  @traverseCode: (code, target, dests = [], depth = 0) ->
+  @traverseCode: (parent, target, dests = []) ->
     isFixed = false
 
-    code.eachChild (child) ->
+    parent.eachChild (child) ->
       if child instanceof Code
         isContains = Parser.isContains child, target
         isDeclared = Parser.isDeclared child, target
         if isContains
-          [ childDests, isChildFixed ] = Parser.traverseCode child, target, null, depth++
+          [ childDests, isChildFixed ] = Parser.traverseCode child, target, null
           if isDeclared or isChildFixed
             dests = childDests
             isFixed = true

        else if isDeclared
          return false

      if child instanceof For
        if Parser.isSameLiteral child.name, target
          dests.push child.name

{ nodes } = require 'coffee-script'
{ Value, Code, Block, Literal, For, Obj, Assign } = require '../node_modules/coffee-script/lib/coffee-script/nodes'
{ Range } = require 'atom'
{ inspect } = require 'util'

