Class: RedParse::AndNode
- Inherits:
-
LogicalNode
- Object
- Array
- Node
- ValueNode
- RawOpNode
- LogicalNode
- RedParse::AndNode
- Defined in:
- lib/redparse/node.rb,
lib/redparse/node.rb,
lib/redparse/ripper.rb,
lib/redparse/ReduceWithsFor_RedParse_1_9.rb,
lib/redparse/ReduceWithsFor_RedParse_1_8.rb
Constant Summary
Constants inherited from LogicalNode
LogicalNode::OP_EQUIV, LogicalNode::OP_EXPAND
Constants included from FlattenedIvars
FlattenedIvars::EXCLUDED_IVARS
Instance Attribute Summary
Attributes inherited from LogicalNode
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 LogicalNode
[], #initialize, #left, #left=, #parsetree, #right, #right=, #special_conditions!, #unparse
Methods included from KeywordOpNode
Methods inherited from RawOpNode
create, #image, #initialize, #raw_unparse
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, #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
Constructor Details
This class inherits a constructor from RedParse::LogicalNode
Instance Method Details
#op ⇒ Object
2899 2900 2901 |
# File 'lib/redparse/node.rb', line 2899 def op "and" end |
#reducer_ident ⇒ Object
17480 17481 17482 |
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17480 def reducer_ident :AndNode end |
#reverse ⇒ Object
2895 2896 2897 |
# File 'lib/redparse/node.rb', line 2895 def reverse false end |
#rip(p) ⇒ Object
114 115 116 |
# File 'lib/redparse/ripper.rb', line 114 def rip p p.on_binary(left.rip(p), op.to_sym, right.rip(p)) end |