OCaml compiler library : Ast_helper (original) (raw)
Module Ast_helper
module Ast_helper: sig
.. end
Helpers to produce Parsetree fragments
Warning This module is unstable and part ofcompiler-libs.
type 'a
with_loc = 'a [Location.loc](Location.html#TYPEloc)
type ``loc = [Location.t](Location.html#TYPEt)
type ``lid = [Longident.t](Longident.html#TYPEt) [with_loc](Ast%5Fhelper.html#TYPEwith%5Floc)
type ``str = string [with_loc](Ast%5Fhelper.html#TYPEwith%5Floc)
type ``str_opt = string option [with_loc](Ast%5Fhelper.html#TYPEwith%5Floc)
type ``attrs = [Parsetree.attribute](Parsetree.html#TYPEattribute) list
Default locations
val default_loc : [loc](Ast%5Fhelper.html#TYPEloc) ref
Default value for all optional location arguments.
val with_default_loc : [loc](Ast%5Fhelper.html#TYPEloc) -> (unit -> 'a) -> 'a
Set the default_loc
within the scope of the execution of the provided function.
Constants
Attributes
Core language
Type expressions
Patterns
Expressions
Value declarations
Type declarations
Type extensions
Module language
Module type expressions
Module expressions
Signature items
Structure items
Module declarations
Module substitutions
Module type declarations
Module bindings
Opens
Includes
Value bindings
Class language
Class type expressions
Class type fields
Class expressions
Class fields
Classes
Class signatures
Class structures
Row fields
Object fields