class Rufo::Formatter
def visit_mlhs_paren(node)
def visit_mlhs_paren(node) # [:mlhs_paren, # [[:mlhs_paren, [:@ident, "x", [1, 12]]]] # ] _, args = node # For some reason there's nested :mlhs_paren for # a single parentheses. It seems when there's # a nested array we need parens, otherwise we # just output whatever's inside `args`. if args.is_a?(Array) && args[0].is_a?(Array) check :on_lparen write "(" next_token skip_space_or_newline indent(@column) do visit_comma_separated_list args end check :on_rparen write ")" next_token else visit args end end