Class: Yoda::Typing::Tree::LogicalOperator
- Defined in:
- lib/yoda/typing/tree/logical_operator.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 ⇒ Types::Type
9 10 11 12 |
# File 'lib/yoda/typing/tree/logical_operator.rb', line 9 def infer_type # TODO generator.union_type(*node.children.map { |node| infer_child(node) }) end |
#node ⇒ AST::LeftOperatorNode, AST::CenterOperatorNode
|
# File 'lib/yoda/typing/tree/logical_operator.rb', line 5
|