Sha256: 01eedc16f22c1e87ce0053f9b1fb42e48808e2fea2cbcfb94db1078cb4904f20
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
module RipperRubyParser module SexpHandlers module MethodCalls def process_method_add_arg exp _, call, parens = exp.shift 3 call = process call s(:call, call[1], call[2], process(parens)) end def process_call exp _, receiver, _, method = exp.shift 4 s(:call, process(receiver), identifier_node_to_symbol(method), s(:arglist)) end def process_command exp _, ident, arglist = exp.shift 3 ident = identifier_node_to_symbol ident arglist = process arglist s(:call, nil, ident, arglist) end def process_command_call exp _, receiver, _, method, arguments = exp.shift 5 s(:call, process(receiver), identifier_node_to_symbol(method), process(arguments)) end def process_vcall exp _, ident = exp.shift 3 ident = identifier_node_to_symbol ident s(:call, nil, ident, s(:arglist)) end def process_fcall exp _, method = exp.shift 2 s(:call, nil, identifier_node_to_symbol(method), s(:arglist)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ripper_ruby_parser-0.0.1 | lib/ripper_ruby_parser/sexp_handlers/method_calls.rb |