Class: Duby::AST::Next

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

Instance Attribute Summary

Attributes inherited from Node

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

Instance Method Summary collapse

Methods inherited from Break

#infer

Methods inherited from Node

#<<, ===, #[], #_set_parent, child, child_name, #each, #empty?, #expr?, #initialize, #initialize_copy, #insert, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s

Constructor Details

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

Instance Method Details

#compile(compiler, expression) ⇒ Object



285
286
287
288
# File 'lib/duby/compiler.rb', line 285

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