Class: RedParse::DanglingCommaNode
- Inherits:
-
DanglingStarNode
- Object
- Array
- Node
- ValueNode
- UnOpNode
- UnaryStarNode
- DanglingStarNode
- RedParse::DanglingCommaNode
- 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
-
#offset ⇒ Object
Returns the value of attribute offset.
Attributes inherited from UnaryStarNode
Attributes inherited from UnOpNode
Attributes inherited from Node
#endline, #errors, #parent, #startline
Attributes included from Stackable::Meta
#boolean_identity_params, #identity_params
Instance Method Summary collapse
-
#initialize ⇒ DanglingCommaNode
constructor
A new instance of DanglingCommaNode.
- #lvalue_parsetree(o) ⇒ Object (also: #parsetree)
- #reducer_ident ⇒ Object
- #unparse(o = default_unparse_options) ⇒ Object
Methods inherited from DanglingStarNode
Methods inherited from UnaryStarNode
Methods inherited from UnOpNode
#arg, #arg=, create, #image, #rip, #to_lisp
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, #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 ⇒ DanglingCommaNode
Returns a new instance of DanglingCommaNode.
1900 1901 1902 |
# File 'lib/redparse/node.rb', line 1900 def initialize end |
Instance Attribute Details
#offset ⇒ Object
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_ident ⇒ Object
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=; ""; end |