 
     ranges = ranges.concat refPaths.map (p) ->
       range = Ripper.locToRange p.node.loc
+      range.type = 'ref'
       if p.parentPath.isObjectProperty()
         { key, shorthand } = p.parentPath.node
         range.shorthand = shorthand

    ranges = ranges.concat binding.constantViolations.map (p) ->
      node = p.node.left || p.node
      range = Ripper.locToRange node.loc
      range
    ranges

        range
      else
        Ripper.locToRange binding.identifier.loc
    declRange.type = 'decl'

    ranges = [declRange]

