Module Ppx_let_expander.Match_kind

ppx_let implements the expansion of `if%ext`, by treating it as a match%ext that matches on a boolean. In order to still be able to distinguish the origin for error message reporting purposes Match_kind.t is a tiny type that let you know if the "match" expansion comes from a match%ext or an if%ext

type t =
  1. | Match
    (*

    match%ext

    *)
  2. | If_
    (*

    if%ext

    *)