vendor/bundle/ruby/2.6.0/gems/rubocop-ast-1.18.0/lib/rubocop/ast/node_pattern/compiler/binding.rb
def bind(name)
            var = @bound.fetch(name) do
              yield n = @bound[name] = "unify_#{name.gsub('-', '__')}"
              n
            end

            if var == :forbidden_unification
              raise Invalid, "Wildcard #{name} was first seen in a subset of a" \
                             " union and can't be used outside that union"
            end
            var
          end
# Yields the first time a given name is bound
#
# @return [String] bound variable name
Yields the first time a given name is bound
Yields the first time a given name is bound
def bind(name)
            var = @bound.fetch(name) do
              yield n = @bound[name] = "unify_#{name.gsub('-', '__')}"
              n
            end
            if var == :forbidden_unification
              raise Invalid, "Wildcard #{name} was first seen in a subset of a" \
                             " union and can't be used outside that union"
            end
            var
          end
def bind ( name ) var = @bound . fetch ( name ) do yield n = @bound [ name ] = "unify_#{name.gsub('-', '__')}" n end if var == :forbidden_unification raise Invalid , "Wildcard #{name} was first seen in a subset of a" " union and can't be used outside that union" end var end
Yields the first time a given name is bound
Yields the first time a given name is bound
bound variable name
bound variable name
String
name