class Rubocop::Cop::VariableInspector::Reference

This class represents each reference of a variable.

def initialize(node, scope)

def initialize(node, scope)
  unless VARIABLE_REFERENCE_TYPES.include?(node.type)
    fail ArgumentError,
         "Node type must be any of #{VARIABLE_REFERENCE_TYPES}, " \
         "passed #{node.type}"
  end
  @node = node
  @scope = scope
end