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

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

Instance Attribute Summary

Attributes inherited from OpAssignAnd

#left, #right

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from OpAssignOr

#sexp_name

Methods inherited from OpAssignAnd

#defined, #initialize, #sexp_name, #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



356
357
358
359
360
361
362
363
364
# File 'lib/rubinius/ast/operators.rb', line 356

def bytecode(g)
  pos(g)

  g.state.push_op_asgn
  @left.or_bytecode(g) do
    g.state.pop_op_asgn
    @right.bytecode(g)
  end
end