Module Ast_helper.Pat

module Pat: sig .. end

Patterns


let mk:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.pattern_desc
  ) =>
  Parsetree.pattern;
let attr: (Parsetree.pattern, Parsetree.attribute) => Parsetree.pattern;
let any:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, unit) =>
  Parsetree.pattern;
let var:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Ast_helper.str) =>
  Parsetree.pattern;
let alias:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.pattern,
    Ast_helper.str
  ) =>
  Parsetree.pattern;
let constant:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Parsetree.constant) =>
  Parsetree.pattern;
let interval:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.constant,
    Parsetree.constant
  ) =>
  Parsetree.pattern;
let tuple:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    list(Parsetree.pattern)
  ) =>
  Parsetree.pattern;
let construct:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Ast_helper.lid,
    option(Parsetree.pattern)
  ) =>
  Parsetree.pattern;
let variant:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Asttypes.label,
    option(Parsetree.pattern)
  ) =>
  Parsetree.pattern;
let record:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    list((Ast_helper.lid, Parsetree.pattern)),
    Asttypes.closed_flag
  ) =>
  Parsetree.pattern;
let array:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    list(Parsetree.pattern)
  ) =>
  Parsetree.pattern;
let or_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.pattern,
    Parsetree.pattern
  ) =>
  Parsetree.pattern;
let constraint_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.pattern,
    Parsetree.core_type
  ) =>
  Parsetree.pattern;
let type_:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Ast_helper.lid) =>
  Parsetree.pattern;
let lazy_:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Parsetree.pattern) =>
  Parsetree.pattern;
let unpack:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Ast_helper.str_opt) =>
  Parsetree.pattern;
let open_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Ast_helper.lid,
    Parsetree.pattern
  ) =>
  Parsetree.pattern;
let exception_:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Parsetree.pattern) =>
  Parsetree.pattern;
let extension:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Parsetree.extension) =>
  Parsetree.pattern;