module Utils::Editor::SourceLocationExtension

def source_location

def source_location
  if respond_to?(:to_str)
    if (string = to_str) =~ FILE_LINENUMBER_REGEXP
      [ $1, $2.to_i ]
    else
      [ string, 1 ]
    end
  else
    [ to_s, 1 ]
  end
end