Class: RedParse::DanglingCommaNode

Inherits:
DanglingStarNode show all
Defined in:
lib/redparse/node.rb,
lib/redparse/ReduceWithsFor_RedParse_1_9.rb,
lib/redparse/ReduceWithsFor_RedParse_1_8.rb

Constant Summary

Constants included from FlattenedIvars

FlattenedIvars::EXCLUDED_IVARS

Instance Attribute Summary collapse

Attributes inherited from UnaryStarNode

#after_comma

Attributes inherited from UnOpNode

#lvalue

Attributes inherited from Node

#endline, #errors, #parent, #startline

Attributes included from Stackable::Meta

#boolean_identity_params, #identity_params

Instance Method Summary collapse

Methods inherited from DanglingStarNode

create, #lvars_defined_in

Methods inherited from UnaryStarNode

#all_current_lvars

Methods inherited from UnOpNode

#arg, #arg=, create, #image, #rip, #to_lisp

Methods inherited from ValueNode

#lvalue, #reducer_method

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, #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

#identity_name

Constructor Details

#initializeDanglingCommaNode

Returns a new instance of DanglingCommaNode.



1900
1901
1902
# File 'lib/redparse/node.rb', line 1900

def initialize
  
end

Instance Attribute Details

#offsetObject

Returns the value of attribute offset.



1903
1904
1905
# File 'lib/redparse/node.rb', line 1903

def offset
  @offset
end

Instance Method Details

#lvalue_parsetree(o) ⇒ Object Also known as: parsetree



1905
1906
1907
# File 'lib/redparse/node.rb', line 1905

def lvalue_parsetree o
  :dangle_comma
end

#reducer_identObject



17440
17441
17442
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17440

def reducer_ident
  :DanglingCommaNode
end

#unparse(o = default_unparse_options) ⇒ Object



1910
# File 'lib/redparse/node.rb', line 1910

def unparse o=default_unparse_options;  "";   end