Class: Yoda::Typing::Tree::For

Inherits:
Base
  • Object
show all
Defined in:
lib/yoda/typing/tree/for.rb

Instance Attribute Summary

Attributes inherited from Base

#context, #tracer

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_typeObject



8
9
10
11
# File 'lib/yoda/typing/tree/for.rb', line 8

def infer_type
  # TODO
  infer_child(node.body)
end

#nodeAST::ForNode

Returns:

  • (AST::ForNode)


8
9
10
11
# File 'lib/yoda/typing/tree/for.rb', line 8

def infer_type
  # TODO
  infer_child(node.body)
end