Class: Yoda::Typing::Tree::LocalExit
- Defined in:
- lib/yoda/typing/tree/local_exit.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#build_child, #generator, #infer_child, #initialize, #inspect, #pretty_print, #type
Constructor Details
This class inherits a constructor from Yoda::Typing::Tree::Base
Instance Method Details
#infer_type ⇒ Object
8 9 10 11 |
# File 'lib/yoda/typing/tree/local_exit.rb', line 8 def infer_type # TODO node.arguments[0] ? infer_child(node.arguments[0]) : generator.nil_type end |
#node ⇒ AST::SpecialCallNode
8 9 10 11 |
# File 'lib/yoda/typing/tree/local_exit.rb', line 8 def infer_type # TODO node.arguments[0] ? infer_child(node.arguments[0]) : generator.nil_type end |