module RipperRubyParser module SexpHandlers module Arrays def process_array exp _, elems = exp.shift 2 s(:array, *handle_array_elements(elems)) end def process_aref exp _, coll, idx = exp.shift 3 coll = process(coll) coll = nil if coll == s(:self) idx = process(idx) || s(:arglist) s(:call, coll, :[], idx) end end end end