@@ -43,7 +43,7 @@ let handle_external loc (x : string) : Parsetree.expression =
4343 Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_expr" ]
4444 ~pval_type:
4545 (Ast_helper.Typ. arrow ~arity: (Some 1 )
46- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
46+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
4747 (Ast_helper.Typ. any () ))
4848 [str_exp];
4949 }
@@ -72,7 +72,7 @@ let handle_debugger loc (payload : Ast_payload.t) =
7272 Ast_external_mk. local_external_apply loc ~pval_prim: [" %debugger" ]
7373 ~pval_type:
7474 (Ast_helper.Typ. arrow ~arity: (Some 1 )
75- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
75+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
7676 (Ast_literal. type_unit () ))
7777 [Ast_literal. val_unit ~loc () ]
7878 | _ ->
@@ -99,7 +99,7 @@ let handle_raw ~kind loc payload =
9999 Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_expr" ]
100100 ~pval_type:
101101 (Ast_helper.Typ. arrow ~arity: (Some 1 )
102- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
102+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
103103 (Ast_helper.Typ. any () ))
104104 [exp];
105105 pexp_attributes =
@@ -128,11 +128,16 @@ let handle_ffi ~loc ~payload =
128128 let unit = Ast_literal. type_unit ~loc () in
129129 let rec arrow ~arity =
130130 if arity = 0 then
131- Ast_helper.Typ. arrow ~arity: None ~loc {lbl = Nolabel ; typ = unit } any
131+ Ast_helper.Typ. arrow ~arity: None ~loc
132+ {attrs = [] ; lbl = Nolabel ; typ = unit }
133+ any
132134 else if arity = 1 then
133- Ast_helper.Typ. arrow ~arity: None ~loc {lbl = Nolabel ; typ = any} any
135+ Ast_helper.Typ. arrow ~arity: None ~loc
136+ {attrs = [] ; lbl = Nolabel ; typ = any}
137+ any
134138 else
135- Ast_helper.Typ. arrow ~loc ~arity: None {lbl = Nolabel ; typ = any}
139+ Ast_helper.Typ. arrow ~loc ~arity: None
140+ {attrs = [] ; lbl = Nolabel ; typ = any}
136141 (arrow ~arity: (arity - 1 ))
137142 in
138143 match ! is_function with
@@ -152,7 +157,7 @@ let handle_ffi ~loc ~payload =
152157 Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_expr" ]
153158 ~pval_type:
154159 (Ast_helper.Typ. arrow ~arity: (Some 1 )
155- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
160+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
156161 (Ast_helper.Typ. any () ))
157162 [exp];
158163 pexp_attributes =
@@ -171,7 +176,7 @@ let handle_raw_structure loc payload =
171176 Ast_external_mk. local_external_apply loc ~pval_prim: [" #raw_stmt" ]
172177 ~pval_type:
173178 (Ast_helper.Typ. arrow ~arity: (Some 1 )
174- {lbl = Nolabel ; typ = Ast_helper.Typ. any () }
179+ {attrs = [] ; lbl = Nolabel ; typ = Ast_helper.Typ. any () }
175180 (Ast_helper.Typ. any () ))
176181 [exp];
177182 }
0 commit comments