Class: Rubinius::ToolSet.current::TS::AST::OpAssignOr

Inherits:
OpAssignAnd show all
Defined in:
lib/rubinius/ast/operators.rb

Direct Known Subclasses

OpAssignOr19

Instance Attribute Summary

Attributes inherited from OpAssignAnd

#left, #right

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from OpAssignAnd

#defined, #initialize, #to_sexp

Methods inherited from Node

#ascii_graph, #attributes, #children, #defined, #initialize, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk

Constructor Details

This class inherits a constructor from Rubinius::ToolSet.current::TS::AST::OpAssignAnd

Instance Method Details

#bytecode(g) ⇒ Object



342
343
344
345
346
347
348
# File 'lib/rubinius/ast/operators.rb', line 342

def bytecode(g)
  pos(g)

  @left.or_bytecode(g) do
    @right.bytecode(g)
  end
end

#sexp_nameObject



350
351
352
# File 'lib/rubinius/ast/operators.rb', line 350

def sexp_name
  :op_asgn_or
end