Class: RedParse::CallNode
- Inherits:
-
CallSiteNode
- Object
- Array
- Node
- ValueNode
- CallSiteNode
- RedParse::CallNode
- Defined in:
- lib/redparse/node.rb,
lib/redparse/ripper.rb,
lib/redparse/ReduceWithsFor_RedParse_1_9.rb,
lib/redparse/ReduceWithsFor_RedParse_1_8.rb
Overview
normal method calls
Constant Summary
Constants included from FlattenedIvars
FlattenedIvars::EXCLUDED_IVARS
Instance Attribute Summary
Attributes inherited from CallSiteNode
Attributes inherited from Node
#endline, #errors, #offset, #parent, #startline
Attributes included from Stackable::Meta
#boolean_identity_params, #identity_params
Instance Method Summary collapse
-
#initialize(*args) ⇒ CallNode
constructor
A new instance of CallNode.
- #reducer_ident ⇒ Object
- #rip(p) ⇒ Object
Methods inherited from CallSiteNode
#blockformals_parsetree, #image, #lvalue_parsetree, #parsetree, #parsetree_with_params, #real_parens, #real_parens=, #set_receiver!, #to_lisp, #unparse, #with_commas
Methods inherited from ValueNode
Methods inherited from Node
#+, #+@, #==, [], #[]=, #add_parent_links!, #args_rip, #begin_parsetree, #classic_inspect, create, #data, #deep_copy, #delete_extraneous_ivars!, #delete_linenums!, #depthwalk, #depthwalk_nodes, #error?, #evalable_inspect, #fixup_multiple_assignments!, #fixup_rescue_assignments!, #force_stmt_list_rip, #image, #initialize_ivars, inline_symbols, #inspect, #lhs_unparse, #linerange, #lvalue, #lvars_defined_in, #merge_replacement_session, namelist, #negate, #original_brackets_assign, param_names, #parsetree, #parsetrees, #pretty_print, #prohibit_fixup, #replace_ivars_and_self, #replace_value, #rescue_parsetree, #rfind, #rfind_all, #rgrep, #rip_and_rescues, #rip_explode!, #short_inspect, #stmts_rip, #to_parsetree, #to_parsetree_and_warnings, #to_ruby, #to_s, #unary, #walk, #xform_tree!
Methods included from Stackable::Meta
#build_exemplars, #enumerate_exemplars, #identity_param
Methods included from FlattenedIvars
#flattened_ivars, #flattened_ivars_equal?
Methods included from Stackable
Constructor Details
#initialize(*args) ⇒ CallNode
Returns a new instance of CallNode.
3380 3381 3382 |
# File 'lib/redparse/node.rb', line 3380 def initialize(*args) super end |
Instance Method Details
#reducer_ident ⇒ Object
17450 17451 17452 |
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17450 def reducer_ident :CallNode end |
#rip(p) ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/redparse/ripper.rb', line 83 def rip p receiver=receiver() name=p.on_ident(name().dup) return p.on_var_ref(name) if p.quirks? and !receiver and !params and !block and @not_real_parens if receiver result=[@not_real_parens ? :on_command_call : :on_call, receiver.rip(p), :".", name] else result=[@not_real_parens ? :on_command : :on_fcall, name] end result=p.send(*result) result=p.on_method_add_arg( result, p.on_arg_paren( p.on_args_add_block( args_rip(params,p), false ))) if params result=p.on_method_add_block(result,p.on_brace_block(nil,block.rip(p))) if block return result end |