Class: RedParse::DotCallNode
- Defined in:
- lib/redparse/node.rb,
lib/redparse/ReduceWithsFor_RedParse_1_9.rb,
lib/redparse/ReduceWithsFor_RedParse_1_8.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 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, #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, #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
This class inherits a constructor from RedParse::Node
Instance Attribute Details
#lvalue ⇒ Object
2023 2024 2025 2026 |
# File 'lib/redparse/node.rb', line 2023 def lvalue return @lvalue if defined? @lvalue @lvalue=true end |
Instance Method Details
#image ⇒ Object
2011 |
# File 'lib/redparse/node.rb', line 2011 def image; '(.)' end |
#parsetree(o) ⇒ Object
2017 2018 2019 2020 2021 2022 |
# File 'lib/redparse/node.rb', line 2017 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 |
#reducer_ident ⇒ Object
17455 17456 17457 |
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17455 def reducer_ident :DotCallNode end |
#to_lisp ⇒ Object
2013 2014 2015 |
# File 'lib/redparse/node.rb', line 2013 def to_lisp "(#{receiver.to_lisp} #{@data.last.to_lisp[1...-1]})" end |