lib/sfrp/mono/pattern.rb
# Return whole conditional-low-exps for the pattern-matching.
Return whole conditional-low-exps for the pattern-matching.
Return whole conditional - low - exps for the pattern - matching .
def low_cond_exps(set, receiver_exp)
        return [] if any?
        vconst = set.vconst(@vconst_str)
        children = @arg_patterns.each_with_index.flat_map do |pat, mem_id|
          new_receiver = child_receiver_exp(set, receiver_exp, mem_id)
          pat.low_cond_exps(set, new_receiver)
        end
        vconst.low_compare_exps(set, receiver_exp) + children
      end
def low_cond_exps ( set , receiver_exp ) return [ ] if any? vconst = set . vconst ( @vconst_str ) children = @arg_patterns . each_with_index . flat_map do | pat , mem_id | new_receiver = child_receiver_exp ( set , receiver_exp , mem_id ) pat . low_cond_exps ( set , new_receiver ) end vconst . low_compare_exps ( set , receiver_exp ) + children end
Return whole conditional-low-exps for the pattern-matching.
Return whole conditional - low - exps for the pattern - matching .
set
receiver_exp