模組 Ast_helper

module Ast_helper: sig .. end

產生 Parsetree 片段的輔助函數

警告 此模組不穩定,是 compiler-libs 的一部分。


type 'a with_loc = 'a Location.loc 
type loc = Location.t 
type lid = Longident.t with_loc 
type str = string with_loc 
type str_opt = string option with_loc 
type attrs = 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

物件欄位