Class: RedParse::DanglingCommaNode
- Inherits:
-
DanglingStarNode
- Object
- Array
- Node
- ValueNode
- UnOpNode
- UnaryStarNode
- DanglingStarNode
- RedParse::DanglingCommaNode
- Defined in:
- lib/redparse/node.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)
- #unparse(o = default_unparse_options) ⇒ Object
Methods inherited from DanglingStarNode
Methods inherited from UnaryStarNode
Methods inherited from UnOpNode
Methods inherited from ValueNode
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!, #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, #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
#initialize ⇒ DanglingCommaNode
Returns a new instance of DanglingCommaNode.
1756 1757 1758 |
# File 'lib/redparse/node.rb', line 1756 def initialize end |
Instance Attribute Details
#offset ⇒ Object
Returns the value of attribute offset.
1759 1760 1761 |
# File 'lib/redparse/node.rb', line 1759 def offset @offset end |
Instance Method Details
#lvalue_parsetree(o) ⇒ Object Also known as: parsetree
1761 1762 1763 |
# File 'lib/redparse/node.rb', line 1761 def lvalue_parsetree o :dangle_comma end |
#unparse(o = default_unparse_options) ⇒ Object
1766 |
# File 'lib/redparse/node.rb', line 1766 def unparse o=; ""; end |