Module Ocaml_parsing.Ast_helper
Helpers to produce Parsetree fragments
Warning This module is unstable and part of compiler-libs.
type 'a with_loc = 'a Ocaml_parsing.Location.loctype loc = Ocaml_parsing.Location.ttype str = string Ocaml_parsing.Ast_helper.with_loctype str_opt = string option Ocaml_parsing.Ast_helper.with_loctype attrs = Ocaml_parsing.Parsetree.attribute listval const_string : string -> Ocaml_parsing.Parsetree.constantDefault locations
val default_loc : Ocaml_parsing.Ast_helper.loc Stdlib.refDefault value for all optional location arguments.
val with_default_loc : Ocaml_parsing.Ast_helper.loc -> (unit -> 'a) -> 'aSet the default_loc within the scope of the execution of the provided function.
Constants
module Const : sig ... endmodule Attr : sig ... endCore language
module Typ : sig ... endType expressions
module Pat : sig ... endPatterns
module Exp : sig ... endExpressions
module Val : sig ... endValue declarations
module Type : sig ... endType declarations
module Te : sig ... endType extensions
Module language
module Mty : sig ... endModule type expressions
module Mod : sig ... endModule expressions
module Sig : sig ... endSignature items
module Sg : sig ... endmodule Str : sig ... endStructure items
module Md : sig ... endModule declarations
module Ms : sig ... endModule substitutions
module Mtd : sig ... endModule type declarations
module Mb : sig ... endModule bindings
module Opn : sig ... endOpens
module Incl : sig ... endIncludes
module Vb : sig ... endValue bindings
Class language
module Cty : sig ... endClass type expressions
module Ctf : sig ... endClass type fields
module Cl : sig ... endClass expressions
module Cf : sig ... endClass fields
module Ci : sig ... endClasses
module Csig : sig ... endClass signatures
module Cstr : sig ... endClass structures
module Rf : sig ... endRow fields
module Of : sig ... endObject fields
merlin: refactored out of Parser
type let_binding = {lb_pattern : Ocaml_parsing.Parsetree.pattern;lb_expression : Ocaml_parsing.Parsetree.expression;lb_constraint : Ocaml_parsing.Parsetree.value_constraint option;lb_is_pun : bool;lb_attributes : Ocaml_parsing.Parsetree.attributes;lb_docs : Ocaml_parsing.Docstrings.docs Stdlib.Lazy.t;lb_text : Ocaml_parsing.Docstrings.text Stdlib.Lazy.t;lb_loc : Ocaml_parsing.Location.t;
}type let_bindings = {lbs_bindings : Ocaml_parsing.Ast_helper.let_binding list;lbs_rec : Ocaml_parsing.Asttypes.rec_flag;lbs_extension : string Ocaml_parsing.Asttypes.loc option;
}val no_label : Ocaml_parsing.Parsetree.arg_labelval extract_str_payload :
Ocaml_parsing.Parsetree.payload ->
(string * Ocaml_parsing.Location.t) option