class RuboCop::Cop::Style::LineEndConcatenation

def autocorrect(operator_range)

def autocorrect(operator_range)
  # Include any trailing whitespace so we don't create a syntax error.
  operator_range = range_with_surrounding_space(range: operator_range,
                                                side: :right,
                                                newlines: false)
  one_more_char = operator_range.resize(operator_range.size + 1)
  # Don't create a double backslash at the end of the line, in case
  # there already was a backslash after the concatenation operator.
  operator_range = one_more_char if one_more_char.source.end_with?('\\')
  ->(corrector) { corrector.replace(operator_range, '\\') }
end