Class: RedParse::DotCallNode
- Defined in:
- lib/redparse/node.rb
Overview
obsolete
Constant Summary
Constants included from FlattenedIvars
FlattenedIvars::EXCLUDED_IVARS
Instance Attribute Summary collapse
Attributes inherited from Node
#endline, #errors, #offset, #parent, #startline
Attributes included from Stackable::Meta
#boolean_identity_params, #identity_params
Instance Method Summary collapse
Methods inherited from Node
#+, #+@, #==, [], #[]=, #add_parent_links!, #begin_parsetree, create, #data, #deep_copy, #delete_extraneous_ivars!, #delete_linenums!, #depthwalk, #depthwalk_nodes, #error?, #evalable_inspect, #fixup_multiple_assignments!, #fixup_rescue_assignments!, #initialize, #initialize_ivars, inline_symbols, #inspect, #lhs_unparse, #linerange, #lvars_defined_in, #merge_replacement_session, namelist, #negate, #original_brackets_assign, param_names, #parsetrees, #pretty_print, #prohibit_fixup, #replace_ivars_and_self, #replace_value, #rescue_parsetree, #to_parsetree, #to_parsetree_and_warnings, #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
This class inherits a constructor from RedParse::Node
Instance Attribute Details
#lvalue ⇒ Object
1873 1874 1875 1876 |
# File 'lib/redparse/node.rb', line 1873 def lvalue return @lvalue if defined? @lvalue @lvalue=true end |
Instance Method Details
#image ⇒ Object
1861 |
# File 'lib/redparse/node.rb', line 1861 def image; '(.)' end |
#parsetree(o) ⇒ Object
1867 1868 1869 1870 1871 1872 |
# File 'lib/redparse/node.rb', line 1867 def parsetree(o) cs=self[1] cs &&= cs.parsetree(o) cs.shift if cs.first==:vcall or cs.first==:fcall [:call, @data.first.parsetree(o), *cs] end |
#to_lisp ⇒ Object
1863 1864 1865 |
# File 'lib/redparse/node.rb', line 1863 def to_lisp "(#{receiver.to_lisp} #{@data.last.to_lisp[1...-1]})" end |