module Ast_helper: sig .. endHelpers to produce Parsetree fragments
Warning This module is unstable and part of compiler-libs.
type with_loc('a) = Location.loc('a);
type loc = Location.t;
type lid = with_loc(Longident.t);
type str = with_loc(string);
type str_opt = with_loc(option(string));
type attrs = list(Parsetree.attribute);
let default_loc: ref(loc);
Default value for all optional location arguments.
let with_default_loc: (loc, unit => 'a) => 'a;
Set the default_loc within the scope of the execution
of the provided function.
module Const: sig .. end
module Attr: sig .. endAttributes
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 Mty: sig .. endModule type expressions
module Mod: sig .. endModule expressions
module Sig: sig .. endSignature items
module 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
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