Module Ast_helper.Exp

module Exp: sig .. end

Expressions


let mk:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression_desc
  ) =>
  Parsetree.expression;
let attr: (Parsetree.expression, Parsetree.attribute) => Parsetree.expression;
let ident:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Ast_helper.lid) =>
  Parsetree.expression;
let constant:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Parsetree.constant) =>
  Parsetree.expression;
let let_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Asttypes.rec_flag,
    list(Parsetree.value_binding),
    Parsetree.expression
  ) =>
  Parsetree.expression;
let fun_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Asttypes.arg_label,
    option(Parsetree.expression),
    Parsetree.pattern,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let function_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    list(Parsetree.case)
  ) =>
  Parsetree.expression;
let apply:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    list((Asttypes.arg_label, Parsetree.expression))
  ) =>
  Parsetree.expression;
let match:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    list(Parsetree.case)
  ) =>
  Parsetree.expression;
let try_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    list(Parsetree.case)
  ) =>
  Parsetree.expression;
let tuple:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    list(Parsetree.expression)
  ) =>
  Parsetree.expression;
let construct:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Ast_helper.lid,
    option(Parsetree.expression)
  ) =>
  Parsetree.expression;
let variant:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Asttypes.label,
    option(Parsetree.expression)
  ) =>
  Parsetree.expression;
let record:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    list((Ast_helper.lid, Parsetree.expression)),
    option(Parsetree.expression)
  ) =>
  Parsetree.expression;
let field:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    Ast_helper.lid
  ) =>
  Parsetree.expression;
let setfield:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    Ast_helper.lid,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let array:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    list(Parsetree.expression)
  ) =>
  Parsetree.expression;
let ifthenelse:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    Parsetree.expression,
    option(Parsetree.expression)
  ) =>
  Parsetree.expression;
let sequence:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let while_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let for_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.pattern,
    Parsetree.expression,
    Parsetree.expression,
    Asttypes.direction_flag,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let coerce:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    option(Parsetree.core_type),
    Parsetree.core_type
  ) =>
  Parsetree.expression;
let constraint_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    Parsetree.core_type
  ) =>
  Parsetree.expression;
let send:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    Ast_helper.str
  ) =>
  Parsetree.expression;
let new_:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Ast_helper.lid) =>
  Parsetree.expression;
let setinstvar:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Ast_helper.str,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let override:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    list((Ast_helper.str, Parsetree.expression))
  ) =>
  Parsetree.expression;
let letmodule:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Ast_helper.str_opt,
    Parsetree.module_expr,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let letexception:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.extension_constructor,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let assert_:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Parsetree.expression) =>
  Parsetree.expression;
let lazy_:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Parsetree.expression) =>
  Parsetree.expression;
let poly:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.expression,
    option(Parsetree.core_type)
  ) =>
  Parsetree.expression;
let object_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.class_structure
  ) =>
  Parsetree.expression;
let newtype:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Ast_helper.str,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let pack:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.module_expr
  ) =>
  Parsetree.expression;
let open_:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.open_declaration,
    Parsetree.expression
  ) =>
  Parsetree.expression;
let letop:
  (
    ~loc: Ast_helper.loc=?,
    ~attrs: Ast_helper.attrs=?,
    Parsetree.binding_op,
    list(Parsetree.binding_op),
    Parsetree.expression
  ) =>
  Parsetree.expression;
let extension:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, Parsetree.extension) =>
  Parsetree.expression;
let unreachable:
  (~loc: Ast_helper.loc=?, ~attrs: Ast_helper.attrs=?, unit) =>
  Parsetree.expression;
let case:
  (Parsetree.pattern, ~guard: Parsetree.expression=?, Parsetree.expression) =>
  Parsetree.case;
let binding_op:
  (Ast_helper.str, Parsetree.pattern, Parsetree.expression, Ast_helper.loc) =>
  Parsetree.binding_op;