module Ast_helper:sig..end
用于生成 Parsetree 片段的辅助函数
警告 此模块不稳定,是 compiler-libs 的一部分。
type'awith_loc ='a Location.loc
typeloc =Location.t
typelid =Longident.t with_loc
typestr =string with_loc
typestr_opt =string option with_loc
typeattrs =Parsetree.attribute list
val default_loc : loc ref所有可选位置参数的默认值。
val with_default_loc : loc -> (unit -> 'a) -> 'a在提供函数的执行范围内设置 default_loc。
module Const:sig..end
module Attr:sig..end
属性
module Typ:sig..end
类型表达式
module Pat:sig..end
模式
module Exp:sig..end
表达式
module Val:sig..end
值声明
module Type:sig..end
类型声明
module Te:sig..end
类型扩展
module Mty:sig..end
模块类型表达式
module Mod:sig..end
模块表达式
module Sig:sig..end
签名项
module Str:sig..end
结构项
module Md:sig..end
模块声明
module Ms:sig..end
模块替换
module Mtd:sig..end
模块类型声明
module Mb:sig..end
模块绑定
module Opn:sig..end
打开
module Incl:sig..end
包含
module Vb:sig..end
值绑定
module Cty:sig..end
类类型表达式
module Ctf:sig..end
类类型字段
module Cl:sig..end
类表达式
module Cf:sig..end
类字段
module Ci:sig..end
类
module Csig:sig..end
类签名
module Cstr:sig..end
类结构
module Rf:sig..end
行字段
module Of:sig..end
对象字段