class RuboCop::AST::NodePattern::Parser::WithMeta::Builder

def emit_atom(type, token)

def emit_atom(type, token)
  value, loc = token
  begin_l = loc.resize(1)
  end_l = loc.end.adjust(begin_pos: -1)
  begin_l = nil if begin_l.source.match?(/\w/)
  end_l = nil if end_l.source.match?(/\w/)
  n(type, [value], source_map(token, begin_t: begin_l, end_t: end_l))
end