class Rufo::Formatter

def indent_after_space(node, sticky: false, want_space: true, first_space: nil)

def indent_after_space(node, sticky: false, want_space: true, first_space: nil)
  first_space = current_token if space?
  skip_space
  case current_token_kind
  when :on_ignored_nl, :on_comment
    indent do
      consume_end_of_line
      write_indent
      visit node
    end
  else
    if want_space
      if first_space && @preserve_whitespace
        write_space first_space[2]
      else
        write_space
      end
    end
    if sticky
      indent(@column) do
        visit node
      end
    else
      visit node
    end
  end
end