Ast_helper.Pat(3)

Okay bestie, welcome to the Ast_helper.Pat(3) page from the OCaml library β€” it's the Patterns corner of Ast_helper, and we're going through every single val together. No skipping, no cap. πŸ’…βœ¨

✨ NAME ✨

Ast_helper.Pat - Patterns

Like, that's the whole name section, and it ate. πŸŽ€

πŸŽ€ Module πŸŽ€

Module Ast_helper.Pat

That's the module address, bestie. Keep it cute and keep it exact. 🫢

πŸ’– Documentation πŸ’–

The docs open with the nested module situation:

Module Pat
 : sig end

Then we get the Patterns label and the full signature lineup. You'll see ?loc:Ast_helper.loc and ?attrs:Ast_helper.attrs showing up all over β€” I'm keeping them exactly where they belong. πŸ‘‘

🌸 Patterns 🌸

Okay, the whole squad, one bullet each, signatures verbatim:

  • mk β€” val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern_desc -> Parsetree.pattern
  • attr β€” val attr : Parsetree.pattern -> Parsetree.attribute -> Parsetree.pattern
  • any β€” val any : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> unit -> Parsetree.pattern
  • var β€” val var : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.str -> Parsetree.pattern
  • alias β€” val alias : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Ast_helper.str -> Parsetree.pattern
  • constant β€” val constant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.constant -> Parsetree.pattern
  • interval β€” val interval : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.constant -> Parsetree.constant -> Parsetree.pattern
  • tuple β€” val tuple : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> (string option * Parsetree.pattern) list -> Asttypes.closed_flag -> Parsetree.pattern
  • construct β€” val construct : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.lid -> (Ast_helper.str list * Parsetree.pattern) option -> Parsetree.pattern
  • variant β€” val variant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Asttypes.label -> Parsetree.pattern option -> Parsetree.pattern
  • record β€” val record : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> (Ast_helper.lid * Parsetree.pattern) list -> Asttypes.closed_flag -> Parsetree.pattern
  • array β€” val array : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern list -> Parsetree.pattern
  • or_ β€” val or_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.pattern -> Parsetree.pattern
  • constraint_ β€” val constraint_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.core_type -> Parsetree.pattern
  • type_ β€” val type_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.lid -> Parsetree.pattern
  • lazy_ β€” val lazy_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.pattern
  • unpack β€” val unpack : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.str_opt -> Parsetree.package_type option -> Parsetree.pattern
  • open_ β€” val open_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast_helper.lid -> Parsetree.pattern -> Parsetree.pattern
  • exception_ β€” val exception_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.pattern
  • effect_ β€” val effect_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.pattern -> Parsetree.pattern -> Parsetree.pattern
  • extension β€” val extension : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parsetree.extension -> Parsetree.pattern

That's the whole list, bestie. Every val, every optional arg, every return type β€” all present and accounted for. πŸ¦‹πŸ’–


And that's the page! This cutie came from OCamldoc, dated 2026-06-22, and it lives at Ast_helper.Pat(3). Bye, have fun with your patterns! πŸ’…πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from