Class: RedParse::GoalPostNode

Inherits:
Node
  • Object
show all
Defined in:
lib/redparse/node.rb,
lib/redparse/ReduceWithsFor_RedParse_1_9.rb,
lib/redparse/ReduceWithsFor_RedParse_1_8.rb

Overview

not to appear in final tree

Constant Summary

Constants included from FlattenedIvars

FlattenedIvars::EXCLUDED_IVARS

Instance Attribute Summary collapse

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 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_ivars, inline_symbols, #inspect, #lhs_unparse, #linerange, #lvalue, #lvars_defined_in, #merge_replacement_session, namelist, #negate, #original_brackets_assign, param_names, #parsetree, #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

#initialize(offset) ⇒ GoalPostNode

Returns a new instance of GoalPostNode.



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

def initialize(offset); @offset=offset end

Instance Attribute Details

#offsetObject (readonly)

Returns the value of attribute offset.



5381
5382
5383
# File 'lib/redparse/node.rb', line 5381

def offset
  @offset
end

Instance Method Details

#identObject



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

def ident; "|" end

#imageObject



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

def image; "|" end

#reducer_identObject



17184
17185
17186
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17184

def reducer_ident
  :GoalPostNode
end

#reducer_method(stack) ⇒ Object



17181
17182
17183
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17181

def reducer_method(stack)
  :reduce_with_tos_GoalPostNode
end