Class: Duby::AST::Redo

Inherits:
Break show all
Defined in:
lib/duby/ast/flow.rb,
lib/duby/compiler.rb

Instance Attribute Summary

Attributes inherited from JumpNode

#ensures

Attributes inherited from Node

#children, #inferred_type, #newline, #parent, #position

Instance Method Summary collapse

Methods inherited from Break

#infer

Methods inherited from JumpNode

#initialize

Methods inherited from Node

#[], #each, #expr?, #initialize, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s

Constructor Details

This class inherits a constructor from Duby::AST::JumpNode

Instance Method Details

#compile(compiler, expression) ⇒ Object



234
235
236
237
# File 'lib/duby/compiler.rb', line 234

def compile(compiler, expression)
  compiler.line(line_number)
  compiler.redo(self)
end