DOKK / manpages / debian 10 / ocaml-compiler-libs / Ast_helper.Pat.3o.en
Ast_helper.Pat(3o) OCamldoc Ast_helper.Pat(3o)

Ast_helper.Pat - Patterns

Module Ast_helper.Pat

Module Pat
: sig end

Patterns

val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern_desc -> Parsetree.pattern

val attr : Parsetree.pattern -> Parsetree.attribute -> Parsetree.pattern

val any : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> unit -> Parsetree.pattern

val var : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.str -> Parsetree.pattern

val alias : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Ast_helper.str -> Parsetree.pattern

val constant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.constant -> Parsetree.pattern

val interval : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.constant -> Parsetree.constant -> Parsetree.pattern

val tuple : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern list -> Parsetree.pattern

val construct : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.lid -> Parsetree.pattern option -> Parsetree.pattern

val variant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Asttypes.label -> Parsetree.pattern option -> Parsetree.pattern

val record : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> (Ast_helper.lid * Parsetree.pattern) list -> Asttypes.closed_flag -> Parsetree.pattern

val array : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern list -> Parsetree.pattern

val or_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.pattern -> Parsetree.pattern

val constraint_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.core_type -> Parsetree.pattern

val type_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.lid -> Parsetree.pattern

val lazy_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.pattern

val unpack : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.str -> Parsetree.pattern

val open_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.lid -> Parsetree.pattern -> Parsetree.pattern

val exception_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.pattern

val extension : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.extension -> Parsetree.pattern

source: 2019-01-25