class EagerEye::Detectors::LoopAssociation

def variable_key_for_node(node)

def variable_key_for_node(node)
  case node&.type
  when :lvar then [:lvar, node.children[0]]
  when :ivar then [:ivar, node.children[0]]
  when :send then variable_key_for_node(node.children[0])
  end
end