class Rufo::Formatter
def visit_setter(node)
def visit_setter(node) # foo.bar # (followed by `=`, though not included in this node) # # [:field, receiver, :".", name] _, receiver, dot, name = node @dot_column = nil @original_dot_column = nil visit receiver skip_space_or_newline_using_setting(:no, @dot_column || next_indent) # Remember dot column dot_column = @column original_dot_column = current_token_column consume_call_dot skip_space_or_newline_using_setting(:no, next_indent) visit name # 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