lib/ruby_parser/bm_sexp.rb
#Returns arguments of a method call. This will be an 'untyped' Sexp.
#
#    s(:call, s(:call, nil, :x, s(:arglist)), :y, s(:arglist, s(:lit, 1), s(:lit, 2)))
#                                                             ^--------args--------^
Returns arguments of a method call. This will be an 'untyped' Sexp.
Returns arguments of a method call . This will be an ' untyped ' Sexp .
def args
    expect :call, :attrasgn, :safe_call, :safe_attrasgn, :super, :zsuper
    case self.node_type
    when :call, :attrasgn, :safe_call, :safe_attrasgn
      if self[3]
        self.sexp_body(3)
      else
        Sexp.new
      end
    when :super, :zsuper
      if self[1]
        self.sexp_body
      else
        Sexp.new
      end
    end
  end
def args expect :call , :attrasgn , :safe_call , :safe_attrasgn , :super , :zsuper case self . node_type when :call , :attrasgn , :safe_call , :safe_attrasgn if self [ 3 ] self . sexp_body ( 3 ) else Sexp . new end when :super , :zsuper if self [ 1 ] self . sexp_body else Sexp . new end end end
Returns arguments of a method call.
Returns arguments of a method call .