class Opal::Nodes::PostArgsNode

def extract_arguments

def extract_arguments
  found_opt_or_rest = false
  children.each do |arg|
    arg.meta[:post] = true
    case arg.type
    when :kwarg, :kwoptarg, :kwrestarg
      @kwargs << arg
    when :restarg
      @restarg = arg
      found_opt_or_rest = true
    when :optarg
      @optargs << arg
      found_opt_or_rest = true
    when :arg, :mlhs
      if found_opt_or_rest
        @required_right_args << arg
      else
        @required_left_args << arg
      end
    end
  end
end