class Rufo::Formatter
def visit_command_call(node)
def visit_command_call(node) # [:command_call, # receiver # :".", # name # [:args_add_block, [[:@int, "1", [1, 8]]], block]] _, receiver, _, name, args = node base_column = current_token_column visit receiver skip_space_or_newline # Remember dot column dot_column = @column original_dot_column = @original_dot_column consume_call_dot skip_space if newline? || comment? consume_end_of_line write_indent(next_indent) else skip_space_or_newline end visit name consume_space_after_command_name visit_command_args(args, base_column) # Only set it after we visit the call after the dot, # so we remember the outmost dot position @dot_column = dot_column @original_dot_column = original_dot_column end