class RuboCop::AST::NodePattern::Compiler

def compile_arg(token)

def compile_arg(token)
  case token
  when WILDCARD  then
    name = token[1..-1]
    access_unify(name) || fail_due_to('invalid in arglist: ' + token)
  when LITERAL   then token
  when PARAM     then get_param(token[1..-1])
  when CLOSING   then fail_due_to("#{token} in invalid position")
  when nil       then fail_due_to('pattern ended prematurely')
  else fail_due_to("invalid token in arglist: #{token.inspect}")
  end
end