   # Heredocs
   #
 
-  defp parse_heredoc("", acc, _replacement, _empty_line_replacement, _here_doc_delimiter) do
+  defp parse_heredoc(
+         "",
+         acc,
+         _replacement,
+         _empty_line_replacement,
+         _here_doc_delimiter,
+         _current_line,
+         _byte_index_start
+       ) do
     acc
   end
 

           acc,
           unquote(sigil_end),
           replacement,
           empty_line_replacement
         ) do
      parse_removable_heredoc_sigil(
        t,
        acc,
        unquote(sigil_end),
        replacement,
        empty_line_replacement
      )
    end


         acc,
         replacement,
         empty_line_replacement,
         here_doc_delimiter,
         current_line,
         byte_index_start
       ) do
    acc =
      if current_line == "\n" do
        acc <> empty_line_replacement
      else
        acc
      end

    parse_heredoc(
      t,
      acc <> "\n",
      replacement,
      empty_line_replacement,
      here_doc_delimiter,
      "\n",
      byte_index_start
    )
  end

  defp parse_heredoc(
