vm/codegen/instructions_gen.rb
# Return a list of symbols, containing the names of the arguments
# this code takes. The list is extracted from the ruby method signature.
#
Return a list of symbols, containing the names of the arguments
this code takes. The list is extracted from the ruby method signature.
Return a list of symbols containing the names of the arguments this code takes . The list is extracted from the ruby method signature .
def args
      return @args if defined? @args
      return [] unless sexp
      args = sexp[2][1][1]
      args.shift
      ret = []
      while sym = args.shift
        break unless sym.kind_of? Symbol
        ret << sym
      end
      @args = ret
    end
def args return @args if defined? @args return [ ] unless sexp args = sexp [ 2 ] [ 1 ] [ 1 ] args . shift ret = [ ] while sym = args . shift break unless sym . kind_of? Symbol ret << sym end @args = ret end
Return a list of symbols, containing the names of the arguments
this code takes.
Return a list of symbols containing the names of the arguments this code takes .