summaryrefslogtreecommitdiff
path: root/parsing/ast_helper.ml
diff options
context:
space:
mode:
Diffstat (limited to 'parsing/ast_helper.ml')
-rw-r--r--parsing/ast_helper.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/parsing/ast_helper.ml b/parsing/ast_helper.ml
index a1da7df974..0dc64eb5f6 100644
--- a/parsing/ast_helper.ml
+++ b/parsing/ast_helper.ml
@@ -245,8 +245,8 @@ module Mty = struct
end
module Mod = struct
-let mk ?(loc = !default_loc) ?(attrs = []) d =
- {pmod_desc = d; pmod_loc = loc; pmod_attributes = attrs}
+ let mk ?(loc = !default_loc) ?(attrs = []) d =
+ {pmod_desc = d; pmod_loc = loc; pmod_attributes = attrs}
let attr d a = {d with pmod_attributes = d.pmod_attributes @ [a]}
let ident ?loc ?attrs x = mk ?loc ?attrs (Pmod_ident x)
@@ -254,6 +254,7 @@ let mk ?(loc = !default_loc) ?(attrs = []) d =
let functor_ ?loc ?attrs arg body =
mk ?loc ?attrs (Pmod_functor (arg, body))
let apply ?loc ?attrs m1 m2 = mk ?loc ?attrs (Pmod_apply (m1, m2))
+ let apply_unit ?loc ?attrs m1 = mk ?loc ?attrs (Pmod_apply_unit m1)
let constraint_ ?loc ?attrs m mty = mk ?loc ?attrs (Pmod_constraint (m, mty))
let unpack ?loc ?attrs e = mk ?loc ?attrs (Pmod_unpack e)
let extension ?loc ?attrs a = mk ?loc ?attrs (Pmod_extension a)