class Rufo::Formatter

def next_token

def next_token
  prev_token = self.current_token
  @tokens.pop
  if (newline? || comment?) && !@heredocs.empty?
    flush_heredocs
  end
  # First first token in newline if requested
  if @want_first_token_in_line && prev_token && (prev_token[1] == :on_nl || prev_token[1] == :on_ignored_nl)
    @tokens.reverse_each do |token|
      case token[1]
      when :on_sp
        next
      else
        @first_token_in_line = token
        break
      end
    end
  end
end