Class: CodeTools::AST::Redo
- Defined in:
- lib/rubinius/code/ast/control_flow.rb
Instance Attribute Summary
Attributes inherited from Break
Attributes inherited from Node
Instance Method Summary collapse
- #bytecode(g) ⇒ Object
-
#initialize(line) ⇒ Redo
constructor
A new instance of Redo.
- #to_sexp ⇒ Object
Methods inherited from Break
#block=, #defined, #jump_error, #sexp_name
Methods inherited from Node
#ascii_graph, #attributes, #children, #defined, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk
Constructor Details
#initialize(line) ⇒ Redo
Returns a new instance of Redo.
638 639 640 |
# File 'lib/rubinius/code/ast/control_flow.rb', line 638 def initialize(line) @line = line end |
Instance Method Details
#bytecode(g) ⇒ Object
642 643 644 645 646 647 648 649 650 |
# File 'lib/rubinius/code/ast/control_flow.rb', line 642 def bytecode(g) pos(g) if g.redo g.goto_past g.redo else jump_error g, :redo end end |
#to_sexp ⇒ Object
652 653 654 |
# File 'lib/rubinius/code/ast/control_flow.rb', line 652 def to_sexp [:redo] end |