module Ast_helper: sig .. end
Helpers 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 .. end
Attributes
module Typ: sig .. end
Type expressions
module Pat: sig .. end
Patterns
module Exp: sig .. end
Expressions
module Val: sig .. end
Value declarations
module Type: sig .. end
Type declarations
module Te: sig .. end
Type extensions
module Mty: sig .. end
Module type expressions
module Mod: sig .. end
Module expressions
module Sig: sig .. end
Signature items
module Str: sig .. end
Structure items
module Md: sig .. end
Module declarations
module Ms: sig .. end
Module substitutions
module Mtd: sig .. end
Module type declarations
module Mb: sig .. end
Module bindings
module Opn: sig .. end
Opens
module Incl: sig .. end
Includes
module Vb: sig .. end
Value bindings
module Cty: sig .. end
Class type expressions
module Ctf: sig .. end
Class type fields
module Cl: sig .. end
Class expressions
module Cf: sig .. end
Class fields
module Ci: sig .. end
Classes
module Csig: sig .. end
Class signatures
module Cstr: sig .. end
Class structures
module Rf: sig .. end
Row fields
module Of: sig .. end
Object fields