fixes/class_ref.rb
# tries to guess class for for-each type cycle variable
tries to guess class for for-each type cycle variable
tries to guess class for for - each type cycle variable
def guess_each_class
    if children.size == 0
      d "Empty array, cannot guess type of elements #{self}"
      return nil
    end
    if child.respond_to? :cls
      d "Found class #{child.cls} for each loop #{self}"
      return child.cls
    end
    d "Cannot resolve class for each loop #{self}, child has no cls method"
    nil
  end
def guess_each_class if children . size == 0 d "Empty array, cannot guess type of elements #{self}" return nil end if child . respond_to? :cls d "Found class #{child.cls} for each loop #{self}" return child . cls end d "Cannot resolve class for each loop #{self}, child has no cls method" nil end
tries to guess class for for-each type cycle variable
tries to guess class for for - each type cycle variable